Skip to content

Commit cc5ee3f

Browse files
committed
Fix order of arrays for v2
1 parent 1c3c3f6 commit cc5ee3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zarr/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,14 +1277,14 @@ async def _get_selection(
12771277
out_buffer = prototype.nd_buffer.create(
12781278
shape=indexer.shape,
12791279
dtype=out_dtype,
1280-
order=self._config.order,
1280+
order=self.order,
12811281
fill_value=self.metadata.fill_value,
12821282
)
12831283
if product(indexer.shape) > 0:
12841284
# need to use the order from the metadata for v2
12851285
_config = self._config
12861286
if self.metadata.zarr_format == 2:
1287-
_config = replace(_config, order=self.metadata.order)
1287+
_config = replace(_config, order=self.order)
12881288

12891289
# reading chunks and decoding them
12901290
await self.codec_pipeline.read(

0 commit comments

Comments
 (0)