Skip to content

Use nested functions for dynamics functions in models #5

@dsheldon

Description

@dsheldon

Our models follow a design pattern where the model calls a dynamics function either once or twice, depending on whether forecasting is enabled. A ton of parameters are passed into dynamics either as keywords or in a big struct called params. But most of the parameters don't change. I think this would be cleaner if dynamics were a nested function and only parameters that changed between the main period and the forecasting period were passed in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions