Skip to content

What behavior do we want when updating model time dimension? #422

@rjplevin

Description

@rjplevin

In the test file test_dimensions.jl, we set the first/last period of a component to 2005 and 2105. We then call set_dimension!(m, :time, 2010:2050) and test that the component's first/last have been updated.

This strikes me as incorrect behavior. If the component can run outside the range the model is being run for, I don't think we should change the component, though this raises questions about component initialization if it's started after it's indicated first period.

Bottom line is that I'm not sure what the correct behavior here should be. Both updating it and not updating it can result in confusion and violation of the principle of least astonishment.

Seeking feedback...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions