def metadata(self) -> Element: """ Load and return the metadata from the LIF file Returns ------- The xml Element Tree of the metadata """ # We can't serialize xml element trees so don't save the tree to the object # state meta_xml, header = utilities.get_xml(self._file) return meta_xml
def test_XML_header(self): etroot, test = get_xml("./tests/xyzt_test.lif") self.assertEqual( test[:50], '<LMSDataContainerHeader Version="2"><Element Name=' )