Skip to content

Warm start in combination with inter-timestep dependency fails to pick up outputs #401

@tomalrussell

Description

@tomalrussell

E.g. running nismod water_supply with warm start, ModelRun.run truncates the model horizon (timesteps) so the DataHandle created has no knowledge of the previous timesteps which were run previously.

These timesteps should not be re-run, but their outputs should be available through e.g. DataHandle.get_previous_timestep_data.

The fact that we do

self.model_horizon = self.model_horizon[idx:]

in ModelRun.run makes the logic in DataHandle._resolve_source invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions