Skip to content

Commit

Permalink
ability to load rosco yaml on rank 0 alone (#409)
Browse files Browse the repository at this point in the history
Co-authored-by: ptrbortolotti <[email protected]>
  • Loading branch information
dzalkind and ptrbortolotti authored Dec 27, 2024
1 parent 122c758 commit 50e8247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rosco/toolbox/inputs/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

schema_dir = os.path.dirname(os.path.abspath(__file__))

def load_rosco_yaml(finput):
def load_rosco_yaml(finput, rank_0=False):
rosco_schema = os.path.join(schema_dir,'toolbox_schema.yaml')
return _validate(finput, rosco_schema, defaults=True)
return _validate(finput, rosco_schema, defaults=True, rank_0=rank_0)


if __name__=='__main__':
Expand Down

0 comments on commit 50e8247

Please sign in to comment.