Closed aidanheerdegen closed 1 year ago
First step is to create a test that reproduces this error. That isn't super straightforward, as there are no existing tests of payu.experiment.run
, but it should be possible to instantiate a solo Model
and assert that model.required_libs
exists and is a dict
.
Populating the required_libs should probably be moved to payu.models.model.setup
, and payu.models.model.required_libs
should be initialised to an empty dict
in payu.models.model.init
, somewhere here:
https://github.com/payu-org/payu/blob/master/payu/models/model.py#L54
Solo models break with functionality introduced in #351 because their config is never populated with
required_libs
.The error looks like this
and occurs for configs with a single solo model, like MOM6-CICE6.
Each of the sub-models config has the correct information injected here:
https://github.com/payu-org/payu/blob/master/payu/experiment.py#L143
but this not done if there is a solo model.