Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyNutil
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harry Carey
PyNutil
Commits
97219b15
Commit
97219b15
authored
7 months ago
by
polarbean
Browse files
Options
Downloads
Patches
Plain Diff
custom atlasing functions
parent
78ea94a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PyNutil/main.py
+8
-1
8 additions, 1 deletion
PyNutil/main.py
with
8 additions
and
1 deletion
PyNutil/main.py
+
8
−
1
View file @
97219b15
...
...
@@ -79,6 +79,8 @@ class PyNutil:
alignment_json
=
None
,
colour
=
None
,
atlas_name
=
None
,
atlas_path
=
None
,
label_path
=
None
,
atlas_resolution_micron
=
None
,
settings_file
=
None
,
)
->
None
:
...
...
@@ -109,7 +111,12 @@ class PyNutil:
self
.
alignment_json
=
alignment_json
self
.
colour
=
colour
self
.
atlas_name
=
atlas_name
self
.
atlas_volume
,
self
.
atlas_labels
=
self
.
load_atlas_data
(
atlas_name
=
atlas_name
)
if
(
atlas_path
or
label_path
)
and
atlas_name
:
raise
ValueError
(
"
Please only specify an atlas_path and a label_path or an atlas_name, atlas and label paths are only used for loading custom atlases
"
)
if
atlas_path
and
label_path
:
self
.
atlas_volume
,
self
.
atlas_labels
=
self
.
load_custom_atlas
(
atlas_path
,
label_path
)
else
:
self
.
atlas_volume
,
self
.
atlas_labels
=
self
.
load_atlas_data
(
atlas_name
=
atlas_name
)
###This is just because of the migration to BrainGlobe
def
load_atlas_data
(
self
,
atlas_name
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment