imas.ids_primitive.IDSNumericArray¶
- class imas.ids_primitive.IDSNumericArray(parent: IDSBase, metadata: IDSMetadata)¶
Bases:
IDSPrimitive,NDArrayOperatorsMixinIDSPrimitive specialization for ND numeric types (wrapping
numpy.ndarray).- __init__(parent: IDSBase, metadata: IDSMetadata)¶
Initialize IDSPrimitive
- Parameters:
- parent: IDSBase¶
Parent node of this leaf
- metadata: IDSMetadata¶
IDSMetadata that describes this IDSPrimitive
Methods
__init__(parent, metadata)Initialize IDSPrimitive
Attributes
Coordinates belonging to this quantity.
Combine imas ids_type and ndims to AL data_type
True if a value is defined here that is not the default
Metadata of this IDS node
Get the shape of the contained data.
Get the size of stored data (number of elements stored).
Return the value of this IDSPrimitive if it is set, otherwise return the default
- property coordinates¶
Coordinates belonging to this quantity.
- property data_type¶
Combine imas ids_type and ndims to AL data_type
- metadata : IDSMetadata¶
Metadata of this IDS node
- property shape : tuple[int, ...]¶
Get the shape of the contained data.
For 0D data types, the shape is always an empty tuple. See also
numpy.shape().
- property size : int¶
Get the size of stored data (number of elements stored).
For 0D data types, the size is always 1 (even when set to the default). For 1+D data types, the size is the number of elements stored, see
numpy.ndarray.size.
- property value¶
Return the value of this IDSPrimitive if it is set, otherwise return the default