Skip to content

Commit

Permalink
remove manual _UNSET_DEFAULT -> None in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Dec 12, 2024
1 parent 6de1e58 commit 89a8c13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pfb/parser/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class _CabInputsOutputs(object):
# and a set containing locations of .yaml configs for pfb workers
schema = OmegaConf.create(tmp[0])

# is this still necessary?
for worker in schema.keys():
for param in schema[worker]['inputs']:
if schema[worker]['inputs'][param]['default'] == _UNSET_DEFAULT:
schema[worker]['inputs'][param]['default'] = None
# # is this still necessary?
# for worker in schema.keys():
# for param in schema[worker]['inputs']:
# if schema[worker]['inputs'][param]['default'] == _UNSET_DEFAULT:
# schema[worker]['inputs'][param]['default'] = None

0 comments on commit 89a8c13

Please sign in to comment.