From 967d995eb3e6bbaad451b4029debdfb306a7ced0 Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Wed, 27 Nov 2024 11:41:08 +0000 Subject: [PATCH 1/3] Expose check_latest in atlas constructor --- brainrender/atlas.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/brainrender/atlas.py b/brainrender/atlas.py index 4ff979bb..eae7ae9e 100644 --- a/brainrender/atlas.py +++ b/brainrender/atlas.py @@ -10,13 +10,14 @@ class Atlas(BrainGlobeAtlas): - def __init__(self, atlas_name=None): + def __init__(self, atlas_name=None, check_latest=True): """ Brainrender's Atlas class subclasses BrainGlobeAtlas to add methods to get regions meshes as Actors and to get a plane at a given point and normal. :param atlas_name: str, atlas name from brainglobe's atlas API atlases + :param check_latest: bool, if True checks that the atlas is the latest version """ atlas_name = atlas_name or settings.DEFAULT_ATLAS self.atlas_name = atlas_name @@ -26,7 +27,7 @@ def __init__(self, atlas_name=None): super().__init__(atlas_name=atlas_name, print_authors=False) except TypeError: # The latest version of BGatlas has no print_authors argument - super().__init__(atlas_name=atlas_name) + super().__init__(atlas_name=atlas_name, check_latest=check_latest) @property def zoom(self): From 4cb60db4f1b6f6a05761380d6805ec501f0691c9 Mon Sep 17 00:00:00 2001 From: IgorTatarnikov Date: Wed, 27 Nov 2024 16:26:54 +0000 Subject: [PATCH 2/3] Remove examples test --- tests/test_examples.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_examples.py b/tests/test_examples.py index 3d73c046..8c1ee581 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -1,5 +1,5 @@ -def test_examples(): - """ - Run every script in the examples directory - """ - import examples # noqa +# def test_examples(): +# """ +# Run every script in the examples directory +# """ +# import examples # noqa From 5b2da45b540638e233df2b120819b5ce0bf4e7c4 Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov <61896994+IgorTatarnikov@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:41:34 +0000 Subject: [PATCH 3/3] Discard changes to tests/test_examples.py --- tests/test_examples.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_examples.py b/tests/test_examples.py index 8c1ee581..3d73c046 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -1,5 +1,5 @@ -# def test_examples(): -# """ -# Run every script in the examples directory -# """ -# import examples # noqa +def test_examples(): + """ + Run every script in the examples directory + """ + import examples # noqa