imas.util.get_toplevel¶
- imas.util.get_toplevel(node: IDSBase) IDSToplevel¶
Retrieve the toplevel IDS object for any node in the IDS.
- Parameters:
- Returns:
The toplevel IDS object.
Example
>>> cp = imas.IDSFactory().core_profiles() >>> cp.profiles_1d.resize(2) >>> imas.util.get_toplevel(cp.profiles_1d[0].electrons.temperature) <IDSToplevel (IDS:core_profiles)>
Last update:
2026-01-28