Skip to content

throw error if any delay parameters <= 1 #52

@papsti

Description

@papsti

delay parameters, like days_incubation that are <=1 correspond to time periods that are shorter than the model step. this setting leads to negative state variables as the model oversteps the state update when extrapolating flows to one time step.

errors should be added to combat this. need to think a bit more carefully about where to add them given that each model has different parameters... also need to think about bypass of epi params via values$flows... maybe it's enough to safeguard the helper functions that i use to make values$flows as these are also used when calculating flows directly from epi params? this is only a feature of the hosp model...

Metadata

Metadata

Assignees

No one assigned

    Labels

    quality assuranceUnit testing, warnings, errors, etc.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions