Skip to content

Conversation

@maarten-ic
Copy link
Collaborator

Bug: IMASPy runs into an attribute error when lazy loading a child quantity that was added in a newer DD version than stored on disk.

Example:

  1. Equilibrium IDS stored in DD 3.33.0
  2. Lazy loading IDS with DD 4.0.0
  3. Try to access eq.time_slice[0].boundary.dr_dz_zero_point.r resulted in an AttributeError

Root cause: IMASPy did not handle correctly that the dr_dz_zero_point was added between 3.33.0 and 4.0.0.

This commit fixes the bug.

Bug: IMASPy runs into an attribute error when lazy loading a child quantity that was added in a newer DD version than stored on disk.

Example:
1. Equilibrium IDS stored in DD 3.33.0
2. Lazy loading IDS with DD 4.0.0
3. Try to access `eq.time_slice[0].boundary.dr_dz_zero_point.r` resulted in an AttributeError

Root cause: IMASPy did not handle correctly that the `dr_dz_zero_point` was added between 3.33.0 and 4.0.0.

This commit fixes the bug.
Copy link
Collaborator

@SimonPinches SimonPinches left a comment

Choose a reason for hiding this comment

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

LGTM

@olivhoenen olivhoenen merged commit cef4667 into iterorganization:develop Dec 18, 2024
@maarten-ic maarten-ic deleted the bugfix/lazy-load-dd-new-structure branch December 18, 2024 13:49
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.

3 participants