f90nml uses Namelist objects which behave a lot like dict. When writing these objects to file with pyyaml, this adds a bunch of extra info to the yaml file that we'd rather not have about how the namelists are formatted. It seems as though this information could be discarded without breaking the namelist files.
I'd propose we use a dict to represent the namelist instead of Namelist objects, and convert to Namelist when writing the namelist file.
f90nml
uses Namelist objects which behave a lot likedict
. When writing these objects to file withpyyaml
, this adds a bunch of extra info to the yaml file that we'd rather not have about how the namelists are formatted. It seems as though this information could be discarded without breaking the namelist files.I'd propose we use a dict to represent the namelist instead of Namelist objects, and convert to Namelist when writing the namelist file.