Skip to content

Commit

Permalink
fix normalize error
Browse files Browse the repository at this point in the history
  • Loading branch information
schumannj committed Aug 1, 2024
1 parent 13a8771 commit 524e2ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nomad_catalysis/schema_packages/catalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class CatalystSample(CompositeSystem, Schema):
)

def populate_results(
self, archive: 'EntryArchive') -> None:
self, archive: 'EntryArchive', logger) -> None:
'''
This function copies the catalyst sample information specified in the dict
quantities_results_mapping into the results archive of the entry.
Expand Down Expand Up @@ -367,12 +367,12 @@ def add_referencing_methods(
logger.warn(f'Found no entries with reference: "{catalyst_sample}".')

def normalize(self, archive, logger):
self.populate_results(archive, self, logger)
self.populate_results(archive, logger)

from nomad.datamodel.context import ClientContext

if isinstance(archive.m_context, ClientContext):
return

super().normalize(archive, logger)
self.add_referencing_methods(self, archive, logger)
self.add_referencing_methods(archive, logger)

0 comments on commit 524e2ad

Please sign in to comment.