Skip to content

Commit a66162d

Browse files
tomwhitemergify[bot]
authored andcommitted
Allow variant_position delta encoding to work with any dtype
1 parent c7ec220 commit a66162d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgkit/io/vcf/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def get_chunk_size(dim: Hashable, size: int) -> int:
196196

197197
# Position is monotonically increasing (within a contig) so benefits from delta encoding
198198
if var == "variant_position":
199-
default_encoding[var]["filters"] = [Delta(dtype="i4", astype="i4")]
199+
default_encoding[var]["filters"] = [Delta(ds[var].dtype)]
200200

201201
return default_encoding
202202

0 commit comments

Comments
 (0)