Skip to content
Snippets Groups Projects
Commit df613fa7 authored by polarbean's avatar polarbean
Browse files

remove type in file operations

parent 34468361
No related branches found
No related tags found
No related merge requests found
...@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment