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

axes

list[UnbinnedAxis] | None

No

None

name

str

Yes

type

Literal[‘point’]

No

'point'

uncertainty

float | None

No

None

value

float

Yes

Validators

Validator

Mode

Fields

validate_point_axes

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_point_axes()

Validate that a point has at most one axis, naming its variate.

Attributes

entries

The point as a one-entry unbinned dataset, shape (1, 1).

type

value

uncertainty

axes

name

PointData.validate_point_axes()[source]

Validate that a point has at most one axis, naming its variate.

Return type:

PointData

PointData.entries

The point as a one-entry unbinned dataset, shape (1, 1).

None without axes: only the axis name identifies which variate of the paired distribution the value belongs to, and HS3 allows axes to be absent.

PointData.type
PointData.value
PointData.uncertainty
PointData.axes
PointData.name