Skip to content

Commit

Permalink
Expose check latest in Scene (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov authored Dec 9, 2024
1 parent e944b0b commit fc94eb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions brainrender/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def __init__(
self,
root=True,
atlas_name=None,
check_latest=True,
inset=True,
title=None,
screenshots_folder=None,
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit fc94eb5

Please sign in to comment.