Versions Compared

Key

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

...

Code Block
"param_st_duration": null

And the when maxfilter.py parses the config.json.example, the value of this parameter is None.

...

But, when no value was entered when executing the App, this parameter was written as follows in the config.json writes it as follows:

Code Block
"param_st_duration": "",

Then this the value of this parameter is passed to the MNE function maxfilterMaxFilter, which reads it as a string instead of None and an error is raised because the function expects a float or None:

...

When it is possible, meaning when your parameter is optional and the App user can choose between fixed values of the parameter, set this parameter to ENUM optional and select ‘optional’ when registering your App on BL parameter:

...

Then, let the user choose between the fixed values of the parameter or an empty field, don’t propose None or null because in the config.json it will be written as:

...

Then, when you want this parameter to be None, just select the option don’t specify when you execute the App.

If you choose to enter your parameter as an ENUM parameter, no need to modify your Python file the way it is presented for a STRING parameter and a NUMBER parameter.

...