Skip to content

ENH: Do not require next state functions for single period models #152

@felixschmitz

Description

@felixschmitz
  • Feature: simplify user model initialisation.

Is your feature request related to a problem?

Currently, PyLCM requires for the initialisation of a user model for each state a corresponding next state function. If the next state function is missing for a state, _validate_logical_consistency inside the __post_init__ raises a ModelInitilizationError.
If the user model is specified with n_periods=1, the next state function is never executed.

Describe the solution you'd like

I wish to use a PyLCM user model for a single period without having to specify next state functions.
I suspect that a first step is to adapt the __post_init__ of the user model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions