polaris.tasks.ocean.realistic_global.models.get_configured_model
- polaris.tasks.ocean.realistic_global.models.get_configured_model(config: PolarisConfigParser, default: str) str[source]
The ocean model a task’s config says it is for.
During setup, the ocean component resolves
[ocean] modelbefore any task is configured. A config without that option, or with a model this workflow has no directory for, leaves the task withdefault, the model it was built for.- Parameters:
config (polaris.config.PolarisConfigParser) – The task’s config options.
default (str) – The model the task’s steps were built for.
- Returns:
str – The model to build the task’s steps for.