Skip to content

Commit

Permalink
Zarr V3 default to little endian configuration for bytes codec
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Oct 6, 2024
1 parent 652f912 commit 594b1b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virtualizarr/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ def _v3_codec_pipeline(self) -> list:
# https://github.com/zarr-developers/zarr-python/pull/1944#issuecomment-2151994097
# "If no ArrayBytesCodec is supplied, we can auto-add a BytesCodec"
bytes = dict(
name="bytes", configuration={}
) # TODO need to handle endianess configuration
name="bytes", configuration={
"endian": "little" # TODO need to handle endianess configuration, but little is a sensible default for now
}
)

# The order here is significant!
# [ArrayArray] -> ArrayBytes -> [BytesBytes]
Expand Down

0 comments on commit 594b1b5

Please sign in to comment.