Versions Compared

Key

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

...

So we have to convert these values in the Python file.

Case of numpy nd.array

In the config.json.example, it is not possible to enter directly a numpy.nd.array, so we enter a list of floats instead:

...

The part when we test if config['param_origin'] is a list is here to make this condition only used when the App is run locally.

Case of a slice

Here again it is impossible to enter a slice in the config.json.example, so in this file we enter:

...

In this case, these lines of code are used to convert the string to a slice when the App runs locally but also on Brainlife.

Case of a tuple

It is also impossible to enter a tuple in a json file, so instead the we enter:

...