File: bigendian.patch

package info (click to toggle)
zarr 3.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,816 kB
  • sloc: python: 21,300; makefile: 215; javascript: 15
file content (37 lines) | stat: -rw-r--r-- 1,150 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Accept big-endian arrays
 This patch will hopefully fix the issues with (python3-)xarray not working on
 s390x.  If it does, we will then forward it.
Author: Julian Gilbey <jdg@debian.org>
Last-Update: 2025-05-04

--- a/src/zarr/core/metadata/v3.py
+++ b/src/zarr/core/metadata/v3.py
@@ -689,17 +689,28 @@
             "bool": "bool",
             "|i1": "int8",
             "<i2": "int16",
+            ">i2": "int16",
             "<i4": "int32",
+            ">i4": "int32",
             "<i8": "int64",
+            ">i8": "int64",
             "|u1": "uint8",
             "<u2": "uint16",
+            ">u2": "uint16",
             "<u4": "uint32",
+            ">u4": "uint32",
             "<u8": "uint64",
+            ">u8": "uint64",
             "<f2": "float16",
+            ">f2": "float16",
             "<f4": "float32",
+            ">f4": "float32",
             "<f8": "float64",
+            ">f8": "float64",
             "<c8": "complex64",
+            ">c8": "complex64",
             "<c16": "complex128",
+            ">c16": "complex128",
         }
         return DataType[dtype_to_data_type[dtype.str]]