class neuroglancer.DimensionScale(NamedTuple)

Public members

static DimensionScale(_cls, scale: float = 1, unit: str = "", ...)

Create new instance of DimensionScale(scale, unit, coordinate_array)

__repr__()

Return a nicely formatted representation string

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

scale: float

Voxel scaling along the dimension.

unit: str

Units of scale.

coordinate_array: CoordinateArray | None

Coordinate array for the dimension.

static from_json(json)