imas.util.get_time_mode

imas.util.get_time_mode(node: IDSBase) IDSInt0D

Retrieve ids_properties/homogeneous_time for any node in the IDS.

Parameters:
node: IDSBase

Any node (structure, array of structures, data node) of an IDS.

Returns:

ids_properties/homogeneous_time.

Example

>>> cp = imas.IDSFactory().core_profiles()
>>> cp.ids_properties.homogeneous_time = 0
>>> cp.profiles_1d.resize(2)
>>> imas.util.get_time_mode(cp.profiles_1d[0].electrons.temperature)
<IDSInt0D (IDS:core_profiles, ids_properties/homogeneous_time, INT_0D)>
int(0)

Last update: 2026-01-28