imas.util.get_full_path¶
- imas.util.get_full_path(node: IDSBase) str¶
Get the full path (relative to the IDS toplevel) of the provided node.
Caution
Determining the path is relatively expensive in large, nested Arrays of Structures: the calculation of the index suffix is O(N) in the size of the AoS.
Using this function may result in a performance bottleneck for your application.
Example
>>> cp = imas.IDSFactory().core_profiles() >>> cp.profiles_1d.resize(2) >>> imas.util.get_full_path(cp.profiles_1d[1].electrons.temperature) 'profiles_1d[1]/electrons/temperature'
Last update:
2026-01-28