CAST-genomics / haptools

Ancestry and haplotype aware simulation of genotypes and phenotypes for complex trait analysis
https://haptools.readthedocs.io
MIT License
19 stars 4 forks source link

refactor: `data.Phenotypes` samples parameter to be of type set #152

Closed aryarm closed 1 year ago

aryarm commented 1 year ago

mentioned in #19

Changes the type of the samples parameter in the data.Phenotypes.read and data.Phenotypes.__iter__ methods to a set

This is just a bit more efficient. Instead of converting the argument to a set internally, we just rely upon it being a set to begin with.