Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 2, 2024
1 parent a980f67 commit eec486a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions bg_atlasgen/validate_atlases.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,21 @@ def validate_atlas(atlas_name, version, validation_functions):
os.makedirs(output_dir_path)

Check warning on line 214 in bg_atlasgen/validate_atlases.py

View check run for this annotation

Codecov / codecov/patch

bg_atlasgen/validate_atlases.py#L213-L214

Added lines #L213 - L214 were not covered by tests

# Open a file for writing
with open(str(get_brainglobe_dir() / "atlases/validation/failed_validations.json"), "w") as file:
with open(

Check warning on line 217 in bg_atlasgen/validate_atlases.py

View check run for this annotation

Codecov / codecov/patch

bg_atlasgen/validate_atlases.py#L217

Added line #L217 was not covered by tests
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)

Check warning on line 224 in bg_atlasgen/validate_atlases.py

View check run for this annotation

Codecov / codecov/patch

bg_atlasgen/validate_atlases.py#L224

Added line #L224 was not covered by tests

with open(str(get_brainglobe_dir() / "atlases/validation/successful_validations.json"), "w") as file:
with open(

Check warning on line 226 in bg_atlasgen/validate_atlases.py

View check run for this annotation

Codecov / codecov/patch

bg_atlasgen/validate_atlases.py#L226

Added line #L226 was not covered by tests
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)

Check warning on line 234 in bg_atlasgen/validate_atlases.py

View check run for this annotation

Codecov / codecov/patch

bg_atlasgen/validate_atlases.py#L234

Added line #L234 was not covered by tests

0 comments on commit eec486a

Please sign in to comment.