carissalow / rapids

Reproducible Analysis Pipeline for Data Streams
http://www.rapids.science/
GNU Affero General Public License v3.0
37 stars 20 forks source link

Adding container information to activity recognition cause invalid config file #199

Closed yikun-chi closed 1 year ago

yikun-chi commented 1 year ago

Hi,

I am trying to run the phone activity recognition feature. However, I noticed that when I put anything in the container, it causes the system to not recognize the config file with below error: " WorkflowError in line 2 of /rapids/Snakefile: Config file is not valid JSON or YAML. In case of YAML, make sure to not mix whitespace and tab indentation. File "/rapids/Snakefile", line 2, in WorkflowError in line 2 of /rapids/Snakefile: Config file is not valid JSON or YAML. In case of YAML, make sure to not mix whitespace and tab indentation. File "/rapids/Snakefile", line 2, in "

I attaced my config.yaml file (added a .log at the end since Github doesn't support uploading yaml type). In as in condition, I get the above error. But when I delete the "a" in container section, the program was able to proceed and start building jobs. The commit I am running is "d255f2de".

config.yaml.log

Thank you so much for the help!

JulioV commented 1 year ago

Hi. The container for this particular sensor is divided for android and ios. Since you're using aware_csv you would need to add two csv files. Fir example

PHONE_ACTIVITY_RECOGNITION:
  CONTAINER: 
    ANDROID: my-plugin_google_activity_recognition.csv
    IOS: my-plugin_ios_activity_recognition.csv

More info in this doc page

yikun-chi commented 1 year ago

Thanks!