Skip to content

Commit a9b714f

Browse files
committed
minor addition
1 parent ac4b9d7 commit a9b714f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/cooper/revision/updated_data_analysis/store_results.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ def save_filtered_dataframes_with_seg_id(output_dir, tomogram_name, df):
108108
}
109109

110110
for filename, max_dist in thresholds.items():
111-
file_path = os.path.join(output_dir, f"{filename}.csv")
111+
#storing with seg ID data in subfolder
112+
with_segID_dir = os.path.join(output_dir, "with_segID")
113+
os.makedirs(with_segID_dir, exist_ok=True)
114+
file_path = os.path.join(with_segID_dir, f"{filename}.csv")
115+
112116
filtered_df = df if max_dist is None else df[df['distance'] <= max_dist]
113117

114118
if filename == 'AZ_distances_within_40_with_diameters_and_seg_id':

0 commit comments

Comments
 (0)