HdfScaleMeta

Contents

HdfScaleMeta#

class HdfScaleMeta(name, type, shape, attr, imin, imax)#

Bases: tuple

Named tuple storing metadata for a single HDF scale (coordinate) dimension.

Parameters:
namestr

The name of the scale dataset.

typestr

The data type of the scale.

shapetuple[int, …]

The shape of the scale array.

attrdict[str, Any]

A dictionary of attributes associated with the dataset.

iminfloat

The minimum value of the scale. This assumes the scale is monotonically increasing.

imaxfloat

The maximum value of the scale. This assumes the scale is monotonically increasing.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Methods

_asdict()

Return a new dict which maps field names to their values.

_replace(**kwds)

Return a new HdfScaleMeta object replacing specified fields with new values

Class Methods

_make(iterable)

Make a new HdfScaleMeta object from a sequence or iterable

Data

_field_defaults

_fields

attr

Alias for field number 3

imax

Alias for field number 5

imin

Alias for field number 4

name

Alias for field number 0

shape

Alias for field number 2

type

Alias for field number 1