Skip to content

Tree.tmrca error when MRCA does not exist #2801

@hyanwong

Description

@hyanwong

When an MRCA does not exist between two nodes A and B (e.g. in deleted region), the tmrca(A, B) function errors out with ValueError: Node index out of bounds, which is not terribly informative.

This implies to me that this edge case has not been tested. I guess we could either have a more sensible error message, or return NaN or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions