From bbf96d4236a125d4ca171645ad109ce7670614c0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:01:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- validation.py | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/validation.py b/validation.py index c048623..2996914 100644 --- a/validation.py +++ b/validation.py @@ -1,4 +1,3 @@ -import shutil from pathlib import Path import napari @@ -16,12 +15,11 @@ validate_atlas_files, validate_checksum, validate_image_dimensions, - validate_mesh_matches_image_extents, ) all_validation_functions = [ validate_atlas_files, - #validate_mesh_matches_image_extents, + # validate_mesh_matches_image_extents, open_for_visual_check, validate_checksum, validate_image_dimensions, @@ -42,16 +40,16 @@ # make sure we have the latest packaged version in .brainglobe # by replacing it with the working_dir version if needed -#atlas_name_with_version = f"{atlas_name}_{resolution}um_v1.{minor_version}" -#source_dir = working_dir / atlas_name / atlas_name_with_version -#destination_dir = brainglobe_dir / atlas_name_with_version -#destination_dir = working_dir / atlas_name_with_version -#if destination_dir.exists() and destination_dir.is_dir(): +# atlas_name_with_version = f"{atlas_name}_{resolution}um_v1.{minor_version}" +# source_dir = working_dir / atlas_name / atlas_name_with_version +# destination_dir = brainglobe_dir / atlas_name_with_version +# destination_dir = working_dir / atlas_name_with_version +# if destination_dir.exists() and destination_dir.is_dir(): # shutil.rmtree(destination_dir) -#assert source_dir.exists() -#if source_dir.exists(): +# assert source_dir.exists() +# if source_dir.exists(): # shutil.copytree(source_dir, destination_dir) -#assert destination_dir.exists() +# assert destination_dir.exists() # run validation functions on the new atlas atlas = BrainGlobeAtlas(f"{atlas_name}_{resolution}um") @@ -88,13 +86,11 @@ viewer = Viewer() viewer.dims.ndisplay = 3 -napari_atlas = NapariAtlasRepresentation( - atlas, viewer -) +napari_atlas = NapariAtlasRepresentation(atlas, viewer) napari_atlas.add_structure_to_viewer("AAB") napari_atlas.add_structure_to_viewer("V") napari_atlas.add_structure_to_viewer("Or") napari_atlas.add_structure_to_viewer("BPCl") napari_atlas.add_to_viewer() -napari.run() \ No newline at end of file +napari.run()