pyhs3.data.PointData¶
- class pyhs3.data.PointData(**data)[source]¶
Point data specification for single measurements.
Represents a single measured value with optional uncertainty.
- Variables:
name – Custom string identifier
type – Must be “point”
value – Measured value
uncertainty – Optional uncertainty/error
axes – Optional axes for observable bounds (for normalization)
- Parameters:
data (
Any)
Fields¶ Field
Type
Required
Default
list[UnbinnedAxis] |NoneNo
NoneYes
Literal[‘point’]No
'point'No
NoneYes
Validators¶ Validator
Mode
Fields
after
model
- __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
Validate that a point has at most one axis, naming its variate.
Attributes
- PointData.validate_point_axes()[source]¶
Validate that a point has at most one axis, naming its variate.
- Return type:
- PointData.entries¶
The point as a one-entry unbinned dataset, shape (1, 1).
Nonewithoutaxes: only the axis name identifies which variate of the paired distribution the value belongs to, and HS3 allowsaxesto be absent.
- PointData.type¶
- PointData.value¶
- PointData.uncertainty¶
- PointData.axes¶
- PointData.name¶