Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose check latest in Scene constructor #400

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading