Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbyrohl committed Aug 18, 2023
1 parent c5f2725 commit c3b1131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scida/interfaces/mixins/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def add_units(container: FieldContainer, basepath: str):
continue # skip empty path
gfwu = gfwu.get(p, {})
# if any parent container specifies "no_units", we will not add units, thus return
if gfwu == "no_units":
if gfwu == "no_units" or gfwu == "none":
return
if gfwu is None:
gfwu = {} # marginal case where no fields are given
Expand Down

0 comments on commit c3b1131

Please sign in to comment.