Skip to content

Make arguments after population in TreeSequence.samples keyword only #1715

@jeromekelleher

Description

@jeromekelleher

We add a new time argument to ts.samples in #1692. We should make sure that this is used only as a keyword, especially with the deprecated population_id argument still lying around.

I suggest we change the signature to

def samples(self, population=None, *, population_id=None, time=None):
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIIssue is about the Python API

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions