From 50e8247e44b3f48a1588d10a237e515d7599e8f9 Mon Sep 17 00:00:00 2001 From: dzalkind <65573423+dzalkind@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:23:25 -0700 Subject: [PATCH] ability to load rosco yaml on rank 0 alone (#409) Co-authored-by: ptrbortolotti --- rosco/toolbox/inputs/validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosco/toolbox/inputs/validation.py b/rosco/toolbox/inputs/validation.py index ade0f3ed..aacdac6d 100644 --- a/rosco/toolbox/inputs/validation.py +++ b/rosco/toolbox/inputs/validation.py @@ -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__':