imas.ids_defs

Load IMAS-Python libs to provide constants

Backend identifiers

The following constants are identifiers for the different Access Layer backends. Please see the Access Layer documentation for more details on the different backends.

imas.ids_defs.ASCII_BACKEND

Identifier for the ASCII backend.

imas.ids_defs.MDSPLUS_BACKEND

Identifier for the MDS+ backend.

imas.ids_defs.HDF5_BACKEND

Identifier for the HDF5 backend.

imas.ids_defs.MEMORY_BACKEND

Identifier for the memory backend.

imas.ids_defs.UDA_BACKEND

Identifier for the UDA backend.

Time modes

imas.ids_defs.IDS_TIME_MODE_HOMOGENEOUS

Use homogeneous time, all time coordinates refer to the toplevel time array.

imas.ids_defs.IDS_TIME_MODE_HETEROGENEOUS

Use heterogeneous time, time coordinates refer to their local time array.

imas.ids_defs.IDS_TIME_MODE_INDEPENDENT

Indicates that this IDS does not store time-dependent data.

Interpolation modes

imas.ids_defs.CLOSEST_INTERP

Interpolation method that returns the closest time slice in the original IDS (can break causality as it can return data ahead of requested time).

imas.ids_defs.PREVIOUS_INTERP

Interpolation method that returns the previous time slice if the requested time does not exactly exist in the original IDS.

imas.ids_defs.LINEAR_INTERP

Interpolation method that returns a linear interpolation between the existing slices before and after the requested time.

Serializer protocols

imas.ids_defs.ASCII_SERIALIZER_PROTOCOL

Identifier for the ASCII serialization protocol.

imas.ids_defs.FLEXBUFFERS_SERIALIZER_PROTOCOL

Identifier for the Flexbuffers serialization protocol. This protocol is more performant and results in a smaller buffer size than the ASCII_SERIALIZER_PROTOCOL.

New in version 1.1: Requires imas_core version 5.3 or newer.

imas.ids_defs.DEFAULT_SERIALIZER_PROTOCOL

Identifier for the default serialization protocol.


Last update: 2026-01-28