Fix COPE question IDs.

master
junos 2023-07-03 20:27:33 +02:00
parent c0236b251c
commit 64c05ec5ec
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import seaborn as sns
import participants.query_db import participants.query_db
from features.esm import QUESTIONNAIRE_IDS, clean_up_esm, get_esm_data, preprocess_esm from features.esm import QUESTIONNAIRE_IDS, clean_up_esm, get_esm_data, preprocess_esm
from features.esm_COPE import reassign_question_ids
from features.esm_JCQ import reverse_jcq_demand_control_scoring from features.esm_JCQ import reverse_jcq_demand_control_scoring
from features.esm_SAM import extract_stressful_events from features.esm_SAM import extract_stressful_events
@ -412,10 +413,11 @@ df_esm_COPE = df_esm_preprocessed[
# %% # %%
df_esm_COPE_clean = clean_up_esm(df_esm_COPE) df_esm_COPE_clean = clean_up_esm(df_esm_COPE)
df_esm_COPE_fixed = reassign_question_ids(df_esm_COPE_clean)
# %% # %%
if export_data: if export_data:
df_esm_COPE_for_export = df_esm_COPE_clean[ df_esm_COPE_for_export = df_esm_COPE_fixed[
[ [
"participant_id", "participant_id",
"username", "username",