Skip to content

Commit

Permalink
proper bool exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
planes committed May 17, 2022
1 parent b9590aa commit 6d78372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trunk/SUAVE/Core/Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def tree_flatten(self):
elif isinstance(value,dict):
if not bool(value):
aux_dict[key] = self.pop(key)
elif isinstance(value,bool):
aux_dict[key] = self.pop(key)

# Some children classes might have "static_keys" that are marked as immutable
if hasattr(self,'static_keys'):
Expand Down

0 comments on commit 6d78372

Please sign in to comment.