diff --git a/src/features/phone_esm/straw/preprocess.py b/src/features/phone_esm/straw/preprocess.py index ce2a9bf3..5f141759 100644 --- a/src/features/phone_esm/straw/preprocess.py +++ b/src/features/phone_esm/straw/preprocess.py @@ -15,5 +15,7 @@ else: df_esm_selected = df_esm_preprocessed[df_esm_preprocessed["questionnaire_id"] == questionnaire_id] df_esm_clean = clean_up_esm(df_esm_selected) if questionnaire_name.startswith("JCQ"): - df_esm_clean = reverse_jcq_demand_control_scoring(df_esm_clean) - df_esm_clean.to_csv(snakemake.output[0]) + df_esm_reversed = reverse_jcq_demand_control_scoring(df_esm_clean) + df_esm_reversed.to_csv(snakemake.output[0]) + else: + df_esm_clean.to_csv(snakemake.output[0])