Skip to content

Commit

Permalink
Simplify unit-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Dec 18, 2024
1 parent 9f4eb77 commit cc65d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomenclature/codelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def validate_units(
(variable, unit, self.mapping[variable].unit)
for variable, unit in unit_mapping.items()
if variable in self.variables
and not set(unit) == set(self.mapping[variable].unit)
and unit not in self.mapping[variable].unit
]:
lst = [
f"'{v}' - expected: {'one of ' if isinstance(e, list) else ''}"
Expand Down

0 comments on commit cc65d1a

Please sign in to comment.