From 8ec2692d47b90439678c43a27bc4afc01f24d469 Mon Sep 17 00:00:00 2001 From: ptrbortolotti Date: Fri, 20 Dec 2024 12:26:47 -0700 Subject: [PATCH] ability to load rosco yaml on rank 0 alone --- 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__':