Fix fitbit_parse_heartrate rule's table parameter

pull/103/head
Meng Li 2020-11-11 20:23:41 -05:00
parent 9fc36f67e2
commit b7e22b7440
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ rule fitbit_parse_heartrate:
"data/raw/{pid}/fitbit_heartrate_{fitbit_data_type}_raw.csv" "data/raw/{pid}/fitbit_heartrate_{fitbit_data_type}_raw.csv"
params: params:
timezone = config["DEVICE_DATA"]["PHONE"]["TIMEZONE"]["VALUE"], timezone = config["DEVICE_DATA"]["PHONE"]["TIMEZONE"]["VALUE"],
table = config["FITBIT_HEARTRATE"]["TABLE"], table = lambda wildcards: config["FITBIT_HEARTRATE_"+str(wildcards.fitbit_data_type).upper()]["TABLE"],
column_format = config["DEVICE_DATA"]["FITBIT"]["SOURCE"]["COLUMN_FORMAT"], column_format = config["DEVICE_DATA"]["FITBIT"]["SOURCE"]["COLUMN_FORMAT"],
fitbit_data_type = "{fitbit_data_type}" fitbit_data_type = "{fitbit_data_type}"
output: output: