Commit 2d26092
Ensure that 0D numpy arrays are unpacked when filling lazy loaded IDS from netCDF files
```python
>>> entry = imas.DBEntry("ascii.nc", "r")
>>> eq = entry.get("equilibrium", autoconvert=False, lazy=True)
>>> # Previous behaviour:
>>> eq.ids_properties.homogeneous_time
<IDSInt0D (IDS:equilibrium, ids_properties/homogeneous_time, INT_0D)>
ndarray(array(1, dtype=int32))
>>> # New behaviour, matches with non-lazy IDS:
>>> eq.ids_properties.homogeneous_time
<IDSInt0D (IDS:equilibrium, ids_properties/homogeneous_time, INT_0D)>
int(1)
```1 parent 4c50b0f commit 2d26092
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
372 | 375 | | |
373 | 376 | | |
374 | 377 | | |
| |||
0 commit comments