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
df613fa7
Commit
df613fa7
authored
1 month ago
by
polarbean
Browse files
Options
Downloads
Patches
Plain Diff
remove type in file operations
parent
34468361
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/io/file_operations.py
+22
-1
22 additions, 1 deletion
PyNutil/io/file_operations.py
with
22 additions
and
1 deletion
PyNutil/io/file_operations.py
+
22
−
1
View file @
df613fa7
...
@@ -107,6 +107,28 @@ def save_analysis_output(
...
@@ -107,6 +107,28 @@ def save_analysis_output(
"
custom_region_path
"
:
custom_region_path
,
"
custom_region_path
"
:
custom_region_path
,
}
}
pixel_points
,
centroids
,
label_df
,
per_section_df
,
labeled_points
,
labeled_points_centroids
,
points_hemi_labels
,
centroids_hemi_labels
,
points_len
,
centroids_len
,
segmentation_filenames
,
atlas_labels
,
output_folder
,
segmentation_folder
=
None
,
alignment_json
=
None
,
colour
=
None
,
atlas_name
=
None
,
custom_region_path
=
None
,
atlas_path
=
None
,
label_path
=
None
,
settings_file
=
None
,
prepend
=
None
,
# Add atlas information to settings
# Add atlas information to settings
if
atlas_name
:
if
atlas_name
:
settings_dict
[
"
atlas_name
"
]
=
atlas_name
settings_dict
[
"
atlas_name
"
]
=
atlas_name
...
@@ -118,7 +140,6 @@ def save_analysis_output(
...
@@ -118,7 +140,6 @@ def save_analysis_output(
settings_dict
[
"
settings_file
"
]
=
settings_file
settings_dict
[
"
settings_file
"
]
=
settings_file
if
custom_region_path
:
if
custom_region_path
:
settings_dict
[
"
custom_region_path
"
]
=
custom_region_path
settings_dict
[
"
custom_region_path
"
]
=
custom_region_path
if
# Write settings to file
# Write settings to file
settings_file_path
=
os
.
path
.
join
(
output_folder
,
"
pynutil_settings.json
"
)
settings_file_path
=
os
.
path
.
join
(
output_folder
,
"
pynutil_settings.json
"
)
with
open
(
settings_file_path
,
"
w
"
)
as
f
:
with
open
(
settings_file_path
,
"
w
"
)
as
f
:
...
...
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