pyhs3.parameter_points.ParameterPoints¶
- class pyhs3.parameter_points.ParameterPoints(root=PydanticUndefined, **data)[source]¶
Collection of HS3 parameter sets for model configuration.
Manages a set of parameter set instances that define parameter values for model evaluation. Provides dict-like access to parameter sets by name and handles parameter set creation from configuration dictionaries.
- Variables:
parameter_sets – Mapping from parameter set names to ParameterSet instances.
- Parameters:
root (
TypeVar(RootModelRootType))
Root Type:
list[ParameterSet]- __init__(root=PydanticUndefined, **data)¶
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.
- Parameters:
root (
TypeVar(RootModelRootType))
Methods
get(name[, default])Get an item by name, returning default if not found.
model_post_init(_NamedCollection__context, /)Initialize computed collections after Pydantic validation.
Attributes
- ParameterPoints.get(name, default=None)¶
Get an item by name, returning default if not found.
- Parameters:
name (
str)default (
TypeVar(T, bound=NamedModel) |None)
- Return type:
TypeVar(T, bound=NamedModel) |None
- ParameterPoints.model_post_init(_NamedCollection__context, /)¶
Initialize computed collections after Pydantic validation.
- Raises:
ValueError – If
_enforce_unique_namesis set and two items share a name. Duplicate names would otherwise silently shadow one another (last-wins), so collections that opt in fail loudly instead.- Parameters:
_NamedCollection__context (
Any)- Return type:
- ParameterPoints.root¶