From eec486a21f353ad186ff830f8581ddca7aad44c6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:12:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- bg_atlasgen/validate_atlases.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bg_atlasgen/validate_atlases.py b/bg_atlasgen/validate_atlases.py index 2294c7c..e3cc542 100644 --- a/bg_atlasgen/validate_atlases.py +++ b/bg_atlasgen/validate_atlases.py @@ -214,10 +214,21 @@ def validate_atlas(atlas_name, version, validation_functions): os.makedirs(output_dir_path) # Open a file for writing - with open(str(get_brainglobe_dir() / "atlases/validation/failed_validations.json"), "w") as file: + with open( + str( + get_brainglobe_dir() / "atlases/validation/failed_validations.json" + ), + "w", + ) as file: # Write the dictionary to the file in JSON format json.dump(failed_validations, file) - with open(str(get_brainglobe_dir() / "atlases/validation/successful_validations.json"), "w") as file: + with open( + str( + get_brainglobe_dir() + / "atlases/validation/successful_validations.json" + ), + "w", + ) as file: # Write the dictionary to the file in JSON format json.dump(successful_validations, file)