Skip to content

Commit 0285994

Browse files
Fixup some tests
1 parent 347d92c commit 0285994

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

bio2zarr/vcf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,8 +2056,7 @@ def get_max_encoding_memory(self):
20562056
"call_genotype_mask",
20572057
]
20582058
gt_mem = sum(
2059-
self.schema.fields[col].variant_chunk_nbytes
2060-
for col in encoded_together
2059+
self.schema.fields[col].variant_chunk_nbytes for col in encoded_together
20612060
)
20622061
return max(max_encoding_mem, gt_mem)
20632062

tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def test_5_chunk_1(self, n, expected):
188188
# It *might* work in CI, but it may well not either, as it's
189189
# probably dependent on a whole bunch of things. Expect to fail
190190
# at some point.
191-
("tests/data", 4630726),
192-
("tests/data/vcf", 4618589),
191+
("tests/data", 4960266),
192+
("tests/data/vcf", 4948129),
193193
("tests/data/vcf/sample.vcf.gz", 1089),
194194
],
195195
)

tests/test_vcf_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ def test_split_explode(tmp_path):
881881
vcf.explode_partition(out, j)
882882
vcf.explode_finalise(out)
883883
pcvcf = vcf.IntermediateColumnarFormat(out)
884-
assert pcvcf.columns["POS"].vcf_field.summary.asdict() == {
884+
assert pcvcf.fields["POS"].vcf_field.summary.asdict() == {
885885
"num_chunks": 3,
886886
"compressed_size": 587,
887887
"uncompressed_size": 1008,

0 commit comments

Comments
 (0)