From 085a6d144bc461ed09907e807e4138a3b201eac9 Mon Sep 17 00:00:00 2001 From: junos Date: Wed, 9 Mar 2022 17:32:02 +0100 Subject: [PATCH] Add files to compute and create an empty script. --- Snakefile | 4 ++++ config.yaml | 6 +++--- src/features/phone_esm/straw/main.py | 0 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/features/phone_esm/straw/main.py diff --git a/Snakefile b/Snakefile index 4ea33827..95cfbc95 100644 --- a/Snakefile +++ b/Snakefile @@ -164,6 +164,10 @@ for provider in config["PHONE_CONVERSATION"]["PROVIDERS"].keys(): 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") +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"])) + # We can delete these if's as soon as we add feature PROVIDERS to any of these sensors if isinstance(config["PHONE_APPLICATIONS_CRASHES"]["PROVIDERS"], dict): for provider in config["PHONE_APPLICATIONS_CRASHES"]["PROVIDERS"].keys(): diff --git a/config.yaml b/config.yaml index 18fb0bad..92578437 100644 --- a/config.yaml +++ b/config.yaml @@ -237,10 +237,10 @@ PHONE_DATA_YIELD: PHONE_ESM: CONTAINER: esm PROVIDERS: - RAPIDS: - COMPUTE: False + STRAW: + COMPUTE: True FEATURES: - SRC_SCRIPT: src/features/phone_keyboard/rapids/main.py + SRC_SCRIPT: src/features/phone_esm/rapids/main.py # See https://www.rapids.science/latest/features/phone-keyboard/ PHONE_KEYBOARD: diff --git a/src/features/phone_esm/straw/main.py b/src/features/phone_esm/straw/main.py new file mode 100644 index 00000000..e69de29b