INM-6 / lif_meanfield_tools

LIF Meanfield Tools
GNU General Public License v3.0
4 stars 7 forks source link

Syntax for parameter YAML files #15

Closed jhnnsnk closed 6 years ago

jhnnsnk commented 6 years ago

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?

moritzlayer commented 6 years ago

Very good idea! I implemented it the way you suggested it.

jhnnsnk commented 6 years ago

Great, thank you! It only seems like reading from file still has to be adapted.

moritzlayer commented 6 years ago

This should be fixed now.