pyhs3.axes.BoundedAxis

class pyhs3.axes.BoundedAxis(**data)[source]

Axis with required finite min/max bounds.

Variables:
  • name – Name of the axis/variable

  • min – Minimum value (required)

  • max – Maximum value (required)

Parameters:

data (Any)

Fields

Field

Type

Required

Default

max

float

Yes

min

float

Yes

name

str

Yes

Validators

Validator

Mode

Fields

check_min_le_max

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

check_min_le_max()

Validate that max >= min.

Attributes

BoundedAxis.check_min_le_max()[source]

Validate that max >= min.

Return type:

BoundedAxis

BoundedAxis.min
BoundedAxis.max
BoundedAxis.name