Rename a parameter.

labels
junos 2022-03-29 18:34:43 +02:00
parent 9478dc94f2
commit 7173ca13e3
3 changed files with 5 additions and 5 deletions

View File

@ -168,8 +168,8 @@ for provider in config["PHONE_ESM"]["PROVIDERS"].keys():
if config["PHONE_ESM"]["PROVIDERS"][provider]["COMPUTE"]:
files_to_compute.extend(expand("data/raw/{pid}/phone_esm_raw.csv",pid=config["PIDS"]))
files_to_compute.extend(expand("data/raw/{pid}/phone_esm_with_datetime.csv",pid=config["PIDS"]))
for feature in config["PHONE_ESM"]["PROVIDERS"][provider]["FEATURES"]:
files_to_compute.extend(expand("data/interim/{pid}/phone_esm_{feature}_clean.csv",pid=config["PIDS"],feature=feature))
for scale in config["PHONE_ESM"]["PROVIDERS"][provider]["SCALES"]:
files_to_compute.extend(expand("data/interim/{pid}/phone_esm_{scale}_clean.csv",pid=config["PIDS"],scale=scale))
#files_to_compute.extend(expand("data/processed/features/{pid}/all_sensor_features.csv",pid=config["PIDS"]))
#files_to_compute.append("data/processed/features/all_participants/all_sensor_features.csv")

View File

@ -239,7 +239,7 @@ PHONE_ESM:
PROVIDERS:
STRAW:
COMPUTE: True
FEATURES: ["PANAS_positive_affect", "PANAS_negative_affect", "JCQ_job_demand", "JCQ_job_control", "JCQ_supervisor_support", "JCQ_coworker_support"]
SCALES: ["PANAS_positive_affect", "PANAS_negative_affect", "JCQ_job_demand", "JCQ_job_control", "JCQ_supervisor_support", "JCQ_coworker_support"]
SRC_SCRIPT: src/features/phone_esm/rapids/main.py
# See https://www.rapids.science/latest/features/phone-keyboard/

View File

@ -327,8 +327,8 @@ rule conversation_r_features:
rule preprocess_esm:
input: "data/raw/{pid}/phone_esm_with_datetime.csv"
params:
questionnaire_name = "{feature}"
output: "data/interim/{pid}/phone_esm_{feature}_clean.csv"
questionnaire_name = "{scale}"
output: "data/interim/{pid}/phone_esm_{scale}_clean.csv"
script:
"../src/features/phone_esm/straw/preprocess.py"