Skip to content

Commit b522ba8

Browse files
Fix validation bug
1 parent 5f19063 commit b522ba8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bio2zarr/vcf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,8 @@ def assert_info_val_equal(vcf_val, zarr_val, vcf_type):
14441444
if vcf_type in ("String", "Character"):
14451445
split = list(vcf_val.split(","))
14461446
k = len(split)
1447-
if k == 1:
1447+
if isinstance(zarr_val, str):
1448+
assert k == 1
14481449
# Scalar
14491450
assert vcf_val == zarr_val
14501451
else:

0 commit comments

Comments
 (0)