Repository navigation
Commit 1d6e210
Fix compatibility with imas-python >= 2.2
imas-python 2.2 removed the has_imas attribute, and importing
imas.backends.imas_core.imas_interface now raises ImportError when
imas_core is not installed (iterorganization/IMAS-Python#92), crashing
_check_imas_version with AttributeError.
Detect the access layer by importing ll_interface and checking
_al_version instead, which works on both old and new imas-python.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent abc227a commit 1d6e210
1 file changed
Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
0 commit comments