imas.ids_primitive.IDSInt0D

class imas.ids_primitive.IDSInt0D(parent: IDSBase, metadata: IDSMetadata)

Bases: IDSNumeric0D, Integral

IDSPrimitive specialization for INT_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()

Conjugate is a no-op for Reals.

Attributes

coordinates

Coordinates belonging to this quantity.

data_type

Combine imas ids_type and ndims to AL data_type

denominator

Integers have a denominator of 1.

has_value

True if a value is defined here that is not the default

imag

Real numbers have no imaginary component.

metadata

Metadata of this IDS node

numerator

Integers are their own numerators.

real

Real numbers are their real component.

shape

Get the shape of the contained data.

size

Get the size of stored data (number of elements stored).

value

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 denominator

Integers have a denominator of 1.

property has_value : bool

True if a value is defined here that is not the default

property imag

Real numbers have no imaginary component.

metadata : IDSMetadata

Metadata of this IDS node

property numerator

Integers are their own numerators.

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


Last update: 2026-01-28