Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbyrohl committed Feb 1, 2024
1 parent 177dfe6 commit e63ae96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scida/interfaces/mixins/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ def check_missing_units(unit, missing_units, path, logger=log):
unit: Union[pint.Unit, str]
missing_units: str
path: str
logger: logging.Logger
The logger to use.
Returns
-------
Expand All @@ -707,5 +709,9 @@ def check_missing_units(unit, missing_units, path, logger=log):
raise ValueError(msg)
elif missing_units == "warn":
logger.info(msg)
elif missing_units == "ignore":
pass
else:
raise ValueError("Unknown missing_units setting '%s'." % missing_units)
return False
return True

0 comments on commit e63ae96

Please sign in to comment.