From fc94eb5a70cfb81c0119bb9d05d797ee0ee80b2f Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov <61896994+IgorTatarnikov@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:49:09 +0000 Subject: [PATCH] Expose check latest in Scene (#400) --- brainrender/scene.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/brainrender/scene.py b/brainrender/scene.py index b6deb65..bb2d6b5 100644 --- a/brainrender/scene.py +++ b/brainrender/scene.py @@ -30,6 +30,7 @@ def __init__( self, root=True, atlas_name=None, + check_latest=True, inset=True, title=None, screenshots_folder=None, @@ -38,10 +39,11 @@ def __init__( ): """ Main scene in brainrender. - It coordinates what should be render and how should it look like. + It coordinates what should be rendered and how should it look like. :param root: bool. If true the brain root mesh is added :param atlas_name: str, name of the brainglobe atlas to be used + :param check_latest: bool, if True checks that the atlas is the latest version :param inset: bool. If true an inset is shown with the brain's outline :param title: str. If true a title is added to the top of the window :param screenshots_folder: str, Path. Where the screenshots will be saved @@ -54,7 +56,7 @@ def __init__( self.actors = [] # stores all actors in the scene self.labels = [] # stores all `labels` actors in scene - self.atlas = Atlas(atlas_name=atlas_name) + self.atlas = Atlas(atlas_name=atlas_name, check_latest=check_latest) self.screenshots_folder = ( Path(screenshots_folder)