ai2cm / fv3config

Manipulate FV3GFS run directories
Apache License 2.0
1 stars 0 forks source link

Use dict instead of Namelist for read/write #29

Closed mcgibbon closed 4 years ago

mcgibbon commented 4 years ago

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.

mcgibbon commented 4 years ago

Closed by #34