Fix bug while checking OS in stream_schema
parent
8c79cfc56f
commit
6b13c80e40
|
@ -140,7 +140,7 @@ pull_phone_data <- function(){
|
||||||
device_os <- ifelse(device_oss[idx] == "infer", infer_device_os_container(data_configuration, device), device_oss[idx])
|
device_os <- ifelse(device_oss[idx] == "infer", infer_device_os_container(data_configuration, device), device_oss[idx])
|
||||||
validate_inferred_os(basename(stream_container), participant_file, device, device_os)
|
validate_inferred_os(basename(stream_container), participant_file, device, device_os)
|
||||||
|
|
||||||
if(!toupper(device_os) %in% stream_schema[[sensor]]) # the current sensor is only available in a single OS (like PHONE_MESSAGES)
|
if(!toupper(device_os) %in% names(stream_schema[[sensor]])) # the current sensor is only available in a single OS (like PHONE_MESSAGES)
|
||||||
next
|
next
|
||||||
|
|
||||||
os_table <- ifelse(length(tables) > 1, tables[[toupper(device_os)]], tables) # some sensor tables have a different name for android and ios
|
os_table <- ifelse(length(tables) > 1, tables[[toupper(device_os)]], tables) # some sensor tables have a different name for android and ios
|
||||||
|
|
Loading…
Reference in New Issue