Skip to content

Commit

Permalink
Fix EntryArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Mar 12, 2024
1 parent a9d1c28 commit 5c56b90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/nomad_simulations/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from structlog.stdlib import BoundLogger

from nomad.datamodel.data import ArchiveSection
from nomad.datamodel import EntryArchive


def get_sibling_section(
Expand Down Expand Up @@ -128,12 +129,12 @@ def is_not_representative(model_system, logger: BoundLogger = None):
return False


def check_archive(archive: ArchiveSection, logger: BoundLogger = None):
def check_archive(archive: EntryArchive, logger: BoundLogger = None):
"""
Checks if the given `ArchiveSection` is empty and logs a warning.
Checks if the given `EntryArchive` is empty and logs a warning.
Args:
archive (ArchiveSection): The `ArchiveSection` to check.
archive (EntryArchive): The `EntryArchive` to check.
logger (BoundLogger): The logger to log messages.
Returns:
Expand Down

0 comments on commit 5c56b90

Please sign in to comment.