tasks
runner
- class anemoi.inference.tasks.runner.CouplingForcings(context, input, variables, mask)
Bases:
CoupledForcingsJust to have a different __repr__.
- class anemoi.inference.tasks.runner.CoupledRunner(config: dict[str, Any], coupled_input: CoupledInput)
Bases:
RunnerRunner for coupled models.
This class handles the initialization and running of coupled models using the provided configuration and input.
- input_state_hook(input_state: dict[str, Any]) None
Hook used by coupled runners to send the input state.
- output_state_hook(state: dict[str, Any]) None
Hook used by coupled runners to send the input state.
- create_dynamic_coupled_forcings(variables: list[str], mask: Any) list[CoupledForcings]
Create dynamic coupled forcings.
- Parameters:
- Returns:
List of coupled forcings.
- Return type:
- class anemoi.inference.tasks.runner.CoupledInput(task: Task, transport: Any, couplings: list[Coupling])
Bases:
objectInput handler for coupled models.
This class manages the input data and state for coupled models, including loading and initializing forcings.
- trace_name = 'coupled'
- load_forcings_state(*, dates: list[str | datetime | int], current_state: dict[str, Any]) dict[str, Any]
Load the forcings state.
- class anemoi.inference.tasks.runner.TestCoupledRunner(config: dict[str, Any], coupled_input: CoupledInput)
Bases:
CoupledRunnerRunner for testing coupled models.
- class anemoi.inference.tasks.runner.NoModelCoupledRunner(config: dict[str, Any], coupled_input: CoupledInput)
Bases:
NoModelMixing,CoupledRunnerRunner for testing coupled models.
- class anemoi.inference.tasks.runner.RunnerTask(name: str, config: dict[str, Any], overrides: dict[str, Any] = {}, global_config: dict[str, Any] = {})
Bases:
TaskTask for running coupled models.
This task initializes and runs coupled models using the provided configuration, overrides, and global configuration.