pyhs3.parameter_points.ParameterSet¶
- class pyhs3.parameter_points.ParameterSet(**data)[source]¶
Named collection of parameter specifications (matches HS3Spec structure).
Represents a complete set of parameter values that can be used to evaluate a model. Each parameter set contains multiple individual parameter points with their names and values.
- Parameters:
name – Name identifier for the parameter set
parameters – List of ParameterPoint specifications
data (
Any)
Fields¶ Field
Type
Required
Default
Yes
No
factory
- __init__(**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:
data (
Any)
Methods
get(param_name[, default])Get a parameter by name, returning default if not found.
model_post_init(_ParameterSet__context, /)Build the name-to-parameter mapping once after validation.
Attributes
Compatibility property for core.py access.
- ParameterSet.get(param_name, default=None)[source]¶
Get a parameter by name, returning default if not found.
- Parameters:
param_name (
str)default (
ParameterPoint|None)
- Return type:
- ParameterSet.model_post_init(_ParameterSet__context, /)[source]¶
Build the name-to-parameter mapping once after validation.
- ParameterSet.points¶
Compatibility property for core.py access.
- ParameterSet.parameters¶
- ParameterSet.name¶