Skip to content

Update hints / log messages when using the UDA backend#76

Merged
olivhoenen merged 6 commits intoiterorganization:developfrom
maarten-ic:feature/uda-hints
Oct 13, 2025
Merged

Update hints / log messages when using the UDA backend#76
olivhoenen merged 6 commits intoiterorganization:developfrom
maarten-ic:feature/uda-hints

Conversation

@maarten-ic
Copy link
Copy Markdown
Collaborator

And remove unused logic for supporting AL4.

The original purpose of these changes were to:

  1. Remove the logged warning that the UDA backend is not tested. Loading data through UDA appears to work fine with the latest AL-Core release.
  2. Add a log message when attempting lazy loading with the UDA backend: indicate that the UDA backend will load all IDS data and that (even with lazy loading enabled) the get / get_slice may be slow.

Implemented in commit e8a5dde

However, when implementing the second point, it was easier after removing some old and unused AL4 code. So I decided to complete that work with the follow-up commits. Closes #40

raise RuntimeError("Lazy loading is not supported by the ASCII backend.")
if self.backend == "uda":
# cache_mode=none doesn't work right now, so the warning won't recommend it
# See: https://jira.iter.org/browse/IMAS-5644
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still the case with imas-core develop? @deepakmaroo

@olivhoenen olivhoenen added this to the 2.0.2 milestone Oct 11, 2025
@olivhoenen
Copy link
Copy Markdown
Collaborator

The doc shall also be updated:

  • removing this item
    5. When using IMAS-Python with remote data access (i.e. the UDA backend), a full
  • hinting at what URI option to use when reading lazily with UDA (and potentially specifying which imas_core version is required)

Comment on lines +100 to +102
.. [#cache_mode_none] The option ``cache_mode=none`` requires IMAS Core version 5.5.1 or
newer, and a remote UDA server with `IMAS UDA-Plugins
<https://github.com/iterorganization/UDA-Plugins>`__ version 1.7.0 or newer.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olivhoenen @deepakmaroo can you please check if my assumptions are valid?

  1. https://jira.iter.org/browse/IMAS-5644 will be part of IMAS Core version 5.5.1 (since 5.5.0 is released, and that still has issues).
  2. Since cache_mode=none only works for the test UDA server (and not the production one) I assumed that the next UDA plugins release is required.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct @maarten-ic , IMAS core v5.5.1 will be release for UDA backend fixed and UDA-Plugins v1.7.0 will be release for complex number support. Documentation looks good to me.

@olivhoenen olivhoenen requested review from deepakmaroo and olivhoenen and removed request for prasad-sawantdesai October 13, 2025 11:38
Copy link
Copy Markdown
Collaborator

@olivhoenen olivhoenen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to be me now!

@olivhoenen olivhoenen merged commit 3230a0d into iterorganization:develop Oct 13, 2025
12 checks passed
@maarten-ic maarten-ic deleted the feature/uda-hints branch October 13, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove code for supporting AL4

3 participants