diff --git a/haptools/data/genotypes.py b/haptools/data/genotypes.py index bdd46585..b90bef98 100644 --- a/haptools/data/genotypes.py +++ b/haptools/data/genotypes.py @@ -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