Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "fif": "/network/lustre/iss01/home/aurore.bussalb/Repositories/test_snr/data/subject_1/bad_channels_1.fif",
    "calibration": "/network/lustre/iss01/home/aurore.bussalb/Repositories/data_test_BL/sss_cal.dat",
    "crosstalk": "/network/lustre/iss01/home/aurore.bussalb/Repositories/data_test_BL/ct_sparse.fif",
    "destination": "/network/lustre/iss01/home/aurore.bussalb/Repositories/data_test_BL/mean_tm-raw.fif",
    "headshape": ""null
}

However, in the config.json other keys are present in this file: _app, _tid, _inputs, and _outputs.

...

Code Block
if '_app' and '_tid' and '_inputs' and '_outputs' in config.keys():
    del config['_app'], config['_tid'], config['_inputs'], config['_outputs'] 
kwargs = config 

These lines were added to helper.py (see Create a helper.py file)

The previous keys are always present in the config.json, but when you applied a pipeline rule (i.e. if you apply the app on several subjects in a raw, see How to run an App on Brainlife) a new key is added to config.json: _rule. So this key must also be deleted from the config dictionary when it existed.

Note

Other keys may appear, so this function may need to be updated to take into account all of these keys.