You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
All methods that take a population as input should be able to handle population labels #2294
Over in the msprime tutorials, it sounds like we're encouraging users to name their populations instead of using the default numbers and labels. However, not all methods that take population as an argument have caught up with this practice.
For instance, the ts.samples() method (defined here) returns an empty array when you input anything other than the numerical IDs. This is confusing, in part because it's unexpected behaviour if you've been working with labels up to this point, and in part because it's indistinguishable the output you get when you use a valid population ID that happens to have no samples.
So basically what I'm saying is that the third command line here should return the same output as the second. I imagine this isn't a tricky fix -- I'm happy to be assigned, but won't be able to prioritise until after the workshops.
Activity
benjeffery commentedon May 24, 2022
Dupe of #1697