Skip to content

Commit 6ae035e

Browse files
Fix numpy deprecation warnings
Closes #166
1 parent c6298e8 commit 6ae035e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bio2zarr/vcf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ def sanitise_value_bool(buff, j, value):
382382
def sanitise_value_float_scalar(buff, j, value):
383383
x = value
384384
if value is None:
385-
x = FLOAT32_MISSING
386-
buff[j] = x
385+
x = [FLOAT32_MISSING]
386+
buff[j] = x[0]
387387

388388

389389
def sanitise_value_int_scalar(buff, j, value):
@@ -392,7 +392,7 @@ def sanitise_value_int_scalar(buff, j, value):
392392
# print("MISSING", INT_MISSING, INT_FILL)
393393
x = [INT_MISSING]
394394
else:
395-
x = sanitise_int_array([value], ndmin=1, dtype=np.int32)
395+
x = sanitise_int_array(value, ndmin=1, dtype=np.int32)
396396
buff[j] = x[0]
397397

398398

0 commit comments

Comments
 (0)