InlineArrayModel#

pydantic model lsst.images.serialization.InlineArrayModel#

Model for a subset of the ASDF ‘ndarray’ schema, in the case where the array data is stored inline.

Parameters:

data (Any)

Fields:
field data: list[Any] [Required]#
field datatype: NumberType [Required]#
with_units(unit)#

Add units, transforming this model in to a Quantity model.

Parameters:

unit – Units to attach to the array values.

property shape: tuple[int, ...]#

The shape of the array (tuple [int, …]).

This page was last modified on .