@@ -99,7 +99,7 @@ def generate(root):
99
99
end = start + v_chunk_size
100
100
101
101
for gt_row , phase in zip (
102
- gt_zarray [start :end ], phase_zarray [start :end ], strict = False
102
+ gt_zarray [start :end ], phase_zarray [start :end ], strict = True
103
103
):
104
104
105
105
def stringify (gt_and_phase : tuple ):
@@ -113,7 +113,7 @@ def stringify(gt_and_phase: tuple):
113
113
return separator .join (gt )
114
114
115
115
gt_row = gt_row .tolist ()
116
- yield map (stringify , zip (gt_row , phase , strict = False ))
116
+ yield map (stringify , zip (gt_row , phase , strict = True ))
117
117
else :
118
118
# TODO: Support datasets without the phasing data
119
119
raise NotImplementedError
@@ -219,8 +219,8 @@ def _compose_sample_loop_generator(
219
219
220
220
def generate (root ):
221
221
iterables = (generator (root ) for generator in generators )
222
- zipped = zip (* iterables , strict = False )
223
- zipped_zipped = (zip (* element , strict = False ) for element in zipped )
222
+ zipped = zip (* iterables , strict = True )
223
+ zipped_zipped = (zip (* element , strict = True ) for element in zipped )
224
224
flattened_zipped_zipped = (
225
225
(
226
226
subsubelement
@@ -309,7 +309,7 @@ def generate(root) -> str:
309
309
filter_iterable = filter_generator (root )
310
310
311
311
for results , filter_indicator in zip (
312
- zip (* iterables , strict = False ), filter_iterable , strict = False
312
+ zip (* iterables , strict = True ), filter_iterable , strict = True
313
313
):
314
314
if filter_indicator :
315
315
results = map (str , results )
0 commit comments