Skip to content

IDProblem has no way to state its infection shape explicitly #364

Open

Description

@seabbs-bot

Found while fixing #246.

IDModel takes its shape as an argument (as_turing_model(model, y_t, n)), so a caller who wants a stratum count neither the observation chain nor the data can supply has a route. IDProblem has no equivalent: the shape is always resolved from the observation model plus data.y_t.

After #363 that resolution is a lot better behaved. The chain states what it can, and the data speaks only along the axis the component consuming it calls a stream axis. So there is no known case today that needs the escape hatch, which is why #363 did not add one.

It is worth adding if a case turns up. The obvious shape is an optional field on IDProblem, and the thing to be careful about is type stability: a Union{Int, Nothing} field read inside the model body is a runtime branch on a small union in a @model, so the count would have to be a type parameter rather than a plain field.

This was opened by a bot. Please ping @seabbs for any questions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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