imas.ids_primitive.IDSString1D

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

Bases: IDSPrimitive

IDSPrimitive specialization for STR_1D.

__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

append(value)

Append a string to this list.

extend(value)

Extend this list with an iterable of strings.

Attributes

coordinates

Coordinates belonging to this quantity.

data_type

Combine imas ids_type and ndims to AL data_type

has_value

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

metadata

Metadata of this IDS node

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

append(value)

Append a string to this list.

property coordinates

Coordinates belonging to this quantity.

property data_type

Combine imas ids_type and ndims to AL data_type

extend(value)

Extend this list with an iterable of strings.

property has_value : bool

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

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


Last update: 2026-01-28