Skip to content

Commit cea36f8

Browse files
Only raise string field warning on sample-dimension:wq
1 parent b5ea524 commit cea36f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bio2zarr/vcf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ def variant_chunk_nbytes(self):
13971397
for size in self.shape[1:]:
13981398
chunk_items *= size
13991399
dt = np.dtype(self.dtype)
1400-
if dt.kind == "O":
1400+
if dt.kind == "O" and "samples" in self.dimensions:
14011401
logger.warning(
14021402
f"Field {self.name} is a string; max memory usage may "
14031403
"be a significant underestimate"

0 commit comments

Comments
 (0)