We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c42573 commit 217fd16Copy full SHA for 217fd16
sgkit/io/utils.py
@@ -9,13 +9,19 @@
9
from ..utils import encode_array, max_str_len
10
11
# These values are based on BCF conventions
12
-INT32_MISSING, INT32_FILL = np.array([0x80000000, 0x80000001], dtype=np.int32)
+INT32_MISSING, INT32_FILL = np.array(
13
+ # Equivalent to 0x80000000, 0x80000001
14
+ [np.iinfo(np.int32).min, np.iinfo(np.int32).min + 1],
15
+ dtype=np.int32,
16
+)
17
+
18
FLOAT32_MISSING, FLOAT32_FILL = np.array([0x7F800001, 0x7F800002], dtype=np.int32).view(
19
np.float32
20
)
21
FLOAT32_MISSING_AS_INT32, FLOAT32_FILL_AS_INT32 = np.array(
22
[0x7F800001, 0x7F800002], dtype=np.int32
23
24
25
STR_MISSING, STR_FILL = ".", ""
26
27
0 commit comments