FixElement

class flexcore.config.spec.FixElement(*, kind: Literal['fix'], name: str | None = None, variable: str, value: float | list[float] | dict[str, float] | SourceRef, units: str | None = None, at: list[int] | None = None, on_violation: Literal['error', 'warn', 'skip'] | None = None, tolerance: Annotated[float | None, Ge(ge=0)] = None)

Fix one or more model variables, named by their path from the model root.

model_config = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].