Skip to content

Request to change submodels in config.yaml from a list to a dict #632

@micaeljtoliveira

Description

@micaeljtoliveira

Currently the submodels are listed in the config.yaml file as a list. This makes it harder to modify the information programmatically (see, for example this issue and the related discussion )

Because all submodels entries need to have a name item, it would be trivial to change the list of submodels to be a dict. So, the following:

    submodels:
      - name: ice:
        model: cice5
        ncpus: [6, 12, 24]

would become:

    submodels:
      ice:
        - model: cice5
          ncpus: [6, 12, 24]

It should also be possible to keep backward compatibility by still allowing the user to provide a list instead of a dict, as it's trivial to convert one into the other internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions