def to_string(self): if not self.value: return 'null' unit = AnalysisUnit(self.value.dereference()) filename = unit.filename return '<AnalysisUnit{}>'.format(' {}'.format(filename) if filename else '')
def unit(self): return AnalysisUnit(self.value['unit'])
def unit(self): return AnalysisUnit(tagged_field(self.value, 'unit'))