...
To convert it into a tuple, in the Python file we added:
Code Block |
---|
if isinstance(config['param_baseline'], str): is not None: param_baseline = list(map(str, config['param_baseline'].split(', '))) param_baseline = [None if i== tuple('None' else i for i in param_baseline] param_baseline = [float(i) if isinstance(i, str) else i for i in param_baseline] config['param_baseline'] = tuple(param_baseline) |
Case of a list of integers/floats
...