From 968c5dd5e21ee80f5a91051f1a144025061c76a0 Mon Sep 17 00:00:00 2001 From: JulioV Date: Fri, 10 Jul 2020 17:06:37 -0400 Subject: [PATCH] Fix bug in Snakefie barnett location --- Snakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snakefile b/Snakefile index 3a7f9a29..d55ee453 100644 --- a/Snakefile +++ b/Snakefile @@ -38,7 +38,7 @@ if config["CALLS"]["COMPUTE"]: if config["BARNETT_LOCATION"]["COMPUTE"]: # TODO add files_to_compute.extend(optional_location_input(None)) if config["BARNETT_LOCATION"]["LOCATIONS_TO_USE"] == "RESAMPLE_FUSED": - if config["BARNETT_LOCATION"]["DB_TABLE"] in config[""]["TABLES"]: + if config["BARNETT_LOCATION"]["DB_TABLE"] in config["PHONE_VALID_SENSED_BINS"]["TABLES"]: files_to_compute.extend(expand("data/interim/{pid}/phone_sensed_bins.csv", pid=config["PIDS"])) else: raise ValueError("Error: Add your locations table (and as many sensor tables as you have) to [PHONE_VALID_SENSED_BINS][TABLES] in config.yaml. This is necessary to compute phone_sensed_bins (bins of time when the smartphone was sensing data) which is used to resample fused location data (RESAMPLED_FUSED)")