Remove unnecessary parameters from preprocess_esm.

And correct the newly named interim file.
labels
junos 2022-04-05 18:35:25 +02:00
parent e2ce68f591
commit e84c35a36a
2 changed files with 2 additions and 5 deletions

View File

@ -168,7 +168,7 @@ for provider in config["PHONE_ESM"]["PROVIDERS"].keys():
if config["PHONE_ESM"]["PROVIDERS"][provider]["COMPUTE"]: 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_raw.csv",pid=config["PIDS"]))
files_to_compute.extend(expand("data/raw/{pid}/phone_esm_with_datetime.csv",pid=config["PIDS"])) files_to_compute.extend(expand("data/raw/{pid}/phone_esm_with_datetime.csv",pid=config["PIDS"]))
files_to_compute.extend(expand("data/interim/{pid}/phone_esm_features/phone_esm_clean_{provider_key}.csv",pid=config["PIDS"],provider_key=provider.lower())) files_to_compute.extend(expand("data/interim/{pid}/phone_esm_clean.csv",pid=config["PIDS"],provider_key=provider.lower()))
#files_to_compute.extend(expand("data/processed/features/{pid}/all_sensor_features.csv",pid=config["PIDS"])) #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") #files_to_compute.append("data/processed/features/all_participants/all_sensor_features.csv")

View File

@ -327,10 +327,7 @@ rule conversation_r_features:
rule preprocess_esm: rule preprocess_esm:
input: "data/raw/{pid}/phone_esm_with_datetime.csv" input: "data/raw/{pid}/phone_esm_with_datetime.csv"
params: params:
provider=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()], scales=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"]["STRAW"]["SCALES"]
provider_key="{provider_key}",
sensor_key="phone_esm",
scales=lambda wildcards: config["PHONE_ESM"]["PROVIDERS"][wildcards.provider_key.upper()]["SCALES"]
output: "data/interim/{pid}/phone_esm_clean.csv" output: "data/interim/{pid}/phone_esm_clean.csv"
script: script:
"../src/features/phone_esm/straw/preprocess.py" "../src/features/phone_esm/straw/preprocess.py"