Example #1
0
 def get_acis_data(self):
     modeler_geometry = self.tags.subclasses[2]
     text_lines = convert_tags_to_text_lines(tag for tag in modeler_geometry
                                             if tag.code in (1, 3))
     return crypt.decode(text_lines)
Example #2
0
 def load_acis_data(self, tags: Tags):
     """ Loading interface. (internal API)"""
     text_lines = tags2textlines(tag for tag in tags if tag.code in (1, 3))
     self.acis_data = crypt.decode(text_lines)
Example #3
0
def test_decode():
    for enc, dec in zip(decode(ENCODED_LINES), DECODED_LINES):
        assert dec == enc
Example #4
0
 def test_decode(self):
     for enc, dec in zip(decode(ENCODED_LINES), DECODED_LINES):
         self.assertEqual(dec, enc)