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

name

str

Yes

parameters

list[ParameterPoint]

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

points

Compatibility property for core.py access.

parameters

name

ParameterSet.get(param_name, default=None)[source]

Get a parameter by name, returning default if not found.

Parameters:
Return type:

ParameterPoint | None

ParameterSet.model_post_init(_ParameterSet__context, /)[source]

Build the name-to-parameter mapping once after validation.

Parameters:

_ParameterSet__context (Any)

Return type:

None

ParameterSet.points

Compatibility property for core.py access.

ParameterSet.parameters
ParameterSet.name