TransmissionParams#
- class dynode.config.params.TransmissionParams(*, strain_interactions: dict[str, dict[str, Annotated[float, Ge(ge=0)] | Array | ndarray | bool | number | bool | int | float | complex | Distribution | DeterministicParameter]], strains: List[Strain], **extra_data: Any)#
Bases:
BaseModel
Transmission Parameters for the respiratory model.
- __init__(**data: Any) None #
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Methods
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- strain_interactions: dict[str, dict[str, Annotated[float, Ge(ge=0)] | Array | ndarray | bool | number | bool | int | float | complex | Distribution | DeterministicParameter]]#
- classmethod _validate_strains_field_not_empty(strains: List[Strain]) List[Strain] #
Ensure that the strains field is not empty.
- _validate_strain_interactions() Self #
- _abc_impl = <_abc._abc_data object>#