Skip to content

Issue: UDA URI fails with cache_mode=none mode #125

Description

@prasad-sawantdesai

When opening the following UDA URI, it fails with a "source not found" exception.

Environment

imas-core==5.7.0
imas-data-dictionaries==4.1.1
imas-python==2.2.0
import imas

entry = imas.DBEntry(
    "imas://uda.iter.org/uda?path=/work/imas/shared/imasdb/ITER/3/134173/106&backend=hdf5&cache_mode=none",
    "r",
)
summary = entry.get("summary", autoconvert=False)
Python 3.11.5 (main, Jul 30 2025, 19:17:56) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import imas
>>> t= imas.DBEntry("imas://uda.iter.org/uda?path=/work/imas/shared/imasdb/ITER/3/134173/106&backend=hdf5&cache_mode=none", "r")
09:54:57 INFO     Parsing data dictionary version 4.1.1 @dd_zip.py:89
>>> sum = t.get("summary", autoconvert=False)
09:55:09 INFO     Parsing data dictionary version 3.38.1 @dd_zip.py:89
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ITER/sawantp1/github/SimDB/myenv/lib/python3.11/site-packages/imas/db_entry.py", line 356, in get
    return self._get(
           ^^^^^^^^^^
  File "/home/ITER/sawantp1/github/SimDB/myenv/lib/python3.11/site-packages/imas/db_entry.py", line 622, in _get
    return self._dbe_impl.get(
           ^^^^^^^^^^^^^^^^^^^
  File "/home/ITER/sawantp1/github/SimDB/myenv/lib/python3.11/site-packages/imas/backends/imas_core/db_entry_al.py", line 232, in get
    get_children(destination, read_ctx, time_mode, nbc_map)
  File "/home/ITER/sawantp1/github/SimDB/myenv/lib/python3.11/site-packages/imas/backends/imas_core/db_entry_helpers.py", line 65, in get_children
    get_children(element, ctx, time_mode, nbc_map)
  File "/home/ITER/sawantp1/github/SimDB/myenv/lib/python3.11/site-packages/imas/backends/imas_core/db_entry_helpers.py", line 69, in get_children
    data = ctx.read_data(new_path, timebase, data_type.al_type, ndim)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ITER/sawantp1/github/SimDB/myenv/lib/python3.11/site-packages/imas/backends/imas_core/al_context.py", line 149, in read_data
    status, data = ll_interface.read_data(
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "imas_core/_al_lowlevel.pyx", line 992, in imas_core._al_lowlevel.al_read_data
  File "imas_core/_al_lowlevel.pyx", line 975, in imas_core._al_lowlevel.al_read_data_string
imas_core.exception.ALException: Error while reading data: al_plugin_read_data: cannot find node summary/ids_properties/source in data dictionary (source not found)
Error status=-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions