diff --git a/src/nomad_measurements/xrd/parser.py b/src/nomad_measurements/xrd/parser.py index b6f4c1ed..a98cba82 100644 --- a/src/nomad_measurements/xrd/parser.py +++ b/src/nomad_measurements/xrd/parser.py @@ -35,6 +35,7 @@ class XRDParser(MatchingParser): """ Parser for matching XRD files and creating instances of ELNXRayDiffraction """ + def set_entrydata_definition(self): self.entrydata_definition = ELNXRayDiffraction @@ -43,7 +44,9 @@ def parse( ) -> None: self.set_entrydata_definition() data_file = mainfile.split('/')[-1] - entry = self.entrydata_definition.m_from_dict(self.entrydata_definition.m_def.a_template) + entry = self.entrydata_definition.m_from_dict( + self.entrydata_definition.m_def.a_template + ) entry.data_file = data_file file_name = f'{"".join(data_file.split(".")[:-1])}.archive.json' archive.data = RawFileXRDData(