Skip to content

Commit

Permalink
handle tuples as well
Browse files Browse the repository at this point in the history
  • Loading branch information
aryarm authored Nov 30, 2023
1 parent 762ceb3 commit 6f23d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions haptools/data/genotypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ def __iter__(
"Samples cannot be loaded in a particular order. "
"Use subset() to reorder the samples after loading them."
)
else:
samples = list(samples)
samples = list(samples)
vcf = VCF(str(self.fname), samples=samples, lazy=True)
self.samples = tuple(vcf.samples)
# call another function to force the lines above to be run immediately
Expand Down

0 comments on commit 6f23d5a

Please sign in to comment.