...
Code Block |
---|
{ param_picks_by_channel_types_or_names = "[0, 2, 1]" } |
Note |
---|
Don’t surround the elements in the list by quotes. |
So, we first need to convert it into a list and then convert the elements of the list into the right type.
...
Code Block |
---|
if isinstance(picks, str) and picks.find("[") != -1 and picks is not None: picks = picks.replace('[', '') picks = picks.replace(']', '') picks = picks.replace("'", '') config['param_picks_by_channel_types_or_names'] = list(map(str, picks.split(', '))) |
...