imas.ids_primitive.IDSFloat0D¶
- class imas.ids_primitive.IDSFloat0D(parent: IDSBase, metadata: IDSMetadata)¶
Bases:
IDSNumeric0D,RealIDSPrimitive specialization for FLT_0D.
- __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
Conjugate is a no-op for Reals.
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
Real numbers have no imaginary component.
Metadata of this IDS node
Real numbers are their real component.
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
- conjugate()¶
Conjugate is a no-op for Reals.
- property coordinates¶
Coordinates belonging to this quantity.
- property data_type¶
Combine imas ids_type and ndims to AL data_type
- property imag¶
Real numbers have no imaginary component.
- metadata : IDSMetadata¶
Metadata of this IDS node
- property real¶
Real numbers are their real component.
- 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