Skip to content

Commit ffd85e0

Browse files
authored
Workaround dask#6631 (#246)
Wrap around list to delegate eq to dask not std python
1 parent cd764bf commit ffd85e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sgkit/io/vcfzarr_reader.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ def read_vcfzarr(path: PathType) -> xr.Dataset:
6161
)
6262

6363
# Add a mask for variant ID
64+
# Note: we wrap the "." inside a list to workaround https://github.com/dask/dask/issues/6631,
65+
# and therefor force dask array's eq
6466
ds["variant_id_mask"] = (
6567
[DIM_VARIANT],
66-
variants_id == ".",
68+
variants_id == ["."],
6769
)
6870

6971
return ds

0 commit comments

Comments
 (0)