From 967d995eb3e6bbaad451b4029debdfb306a7ced0 Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Wed, 27 Nov 2024 11:41:08 +0000 Subject: [PATCH] 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):