pyhs3.domains.Domain¶
- class pyhs3.domains.Domain(**data)[source]¶
Base class for HS3 domain specifications.
Provides the foundation for all domain implementations, handling common properties like name and type identification. Domains define parameter spaces for integration, constraints, and likelihood evaluation.
- Parameters:
name – Name identifier for the domain
type – Domain type identifier
data (
Any)
- __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(_axis_name[, default])Get axis bounds for a parameter name.
Attributes
List of axis names in this domain; not every domain type implements it.
Number of dimensions in this domain.
- Domain.get(_axis_name, default=None)[source]¶
Get axis bounds for a parameter name. Note: may not be implemented for all domain types.
- Domain.axis_names¶
List of axis names in this domain; not every domain type implements it.
- Domain.dimension¶
Number of dimensions in this domain.
- Domain.type¶
- Domain.name¶