Skip to content

Commit 5a7dd3a

Browse files
only savings RPE when we need to.
1 parent 301be59 commit 5a7dd3a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/rachel_analysis_utils/analysis_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def add_AUC_and_rpe_slope(nwbs_by_week, parameters, data_column = 'data_z_norm',
7373
combined_rpe_slope = pd.concat(rpe_slope_dict, names=["channel"])
7474
combined_rpe_slope = combined_rpe_slope.reset_index(level="channel").reset_index(drop=True)
7575

76-
combined_rpe_slope.to_csv(f"/results/{subject_id}_rpe_slope.csv")
76+
if parameters["save_dfs"] == True:
77+
combined_rpe_slope.to_csv(f"/results/data/{subject_id}/rpe_slope.csv")
7778

7879
return nwbs_by_week_enriched, combined_rpe_slope
7980

0 commit comments

Comments
 (0)