You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Saving and re-opening a v2 array does not report (or save) correct memory order #2950
iirc this is because we made order part of the runtime configuration, due to order not being part of the zarr v3 metadata model. I'm pretty sure a global config is the wrong location for this parameter -- I think we need a per-array namespace for runtime configuration like this.
if you inspect the array.metadata.order, I think you should see that it has the expected F value. The issue is that when zarr opens an array, it defers to the global config when setting the order of the in-memory array associated with that zarr array, whether the array is v2 or v3. The problem is our use of this global config.
if you inspect the array.metadata.order, I think you should see that it has the expected F value. The issue is that when zarr opens an array, it defers to the global config when setting the order of the in-memory array associated with that zarr array, whether the array is v2 or v3. The problem is our use of this global config.
this explanation is actually very wrong -- we are already using the array-specific config. the underlying issue, addressed in #2951, is a simple bug in our implementation.
Activity
d-v-b commentedon Apr 3, 2025
iirc this is because we made order part of the runtime configuration, due to
ordernot being part of the zarr v3 metadata model. I'm pretty sure a global config is the wrong location for this parameter -- I think we need a per-array namespace for runtime configuration like this.dstansby commentedon Apr 3, 2025
It's part of the v2 metadata though, so shouldn't this be persisted and read in with the array itself (for zarr format 2)?
d-v-b commentedon Apr 3, 2025
if you inspect the
array.metadata.order, I think you should see that it has the expectedFvalue. The issue is that when zarr opens an array, it defers to the global config when setting the order of the in-memory array associated with that zarr array, whether the array is v2 or v3. The problem is our use of this global config.dstansby commentedon Apr 3, 2025
Nope,
arr.metadata.orderstill gives the wrong order.d-v-b commentedon Apr 3, 2025
:( that's bad! we definitely need to fix this!
d-v-b commentedon Apr 3, 2025
i can get to this in the next few days unless someone does it first
d-v-b commentedon Apr 3, 2025
this explanation is actually very wrong -- we are already using the array-specific config. the underlying issue, addressed in #2951, is a simple bug in our implementation.