Skip to content

Deprecate Tree.num_nodes? #1966

@hyanwong

Description

@hyanwong

Even though it's documented, I think it's super confusing that Tree.num_nodes returns the number of nodes in the entire tree sequence, not the number of nodes in the tree itself. I suggest we might want to deprecate it and say that the user should use Tree.tree_sequence.num_nodes instead, which is much clearer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIIssue is about the Python API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions