If a parameter does not have a unit, it is currently described in the YAML file as dictionary with the key 'val' only:
label:
val: microcircuit
I suggest to change to the simplified syntax
label: microcircuit
and use the dictionary with 'val'/'unit' keys only if needed.
input_output.py could check for a dictionary type and if the 'val'/'unit' keys exist, and otherwise just pass the variable to the converted_dict as it is.
What do you think?
If a parameter does not have a unit, it is currently described in the YAML file as dictionary with the key 'val' only:
I suggest to change to the simplified syntax
and use the dictionary with 'val'/'unit' keys only if needed. input_output.py could check for a dictionary type and if the 'val'/'unit' keys exist, and otherwise just pass the variable to the converted_dict as it is. What do you think?