From 1b77fb119c227a530f2cdde3f2c4bb30625d9eb6 Mon Sep 17 00:00:00 2001 From: junos Date: Mon, 3 Jul 2023 17:17:56 +0200 Subject: [PATCH] Fix an error introduced in ae2ca63bc4912ef55a29897203563b5b2fe5c607. --- exploration/expl_esm_labels.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/exploration/expl_esm_labels.py b/exploration/expl_esm_labels.py index f8f3a53..5f79ce9 100644 --- a/exploration/expl_esm_labels.py +++ b/exploration/expl_esm_labels.py @@ -232,8 +232,14 @@ sns.displot( # %% df_esm_SAM_threat_challenge_summary_participant = df_esm_SAM_summary_participant[ - (df_esm_SAM_daily["questionnaire_id"] == QUESTIONNAIRE_IDS["appraisal_threat"]) - | (df_esm_SAM_daily["questionnaire_id"] == QUESTIONNAIRE_IDS["appraisal_challenge"]) + ( + df_esm_SAM_summary_participant["questionnaire_id"] + == QUESTIONNAIRE_IDS["appraisal_threat"] + ) + | ( + df_esm_SAM_summary_participant["questionnaire_id"] + == QUESTIONNAIRE_IDS["appraisal_challenge"] + ) ] df_esm_SAM_threat_challenge_summary_participant[ "event subscale"