Skip to content

Sorting produces invalid mutation order #1227

Closed

Description

@benjeffery

Adding

tables1.tree_sequence()
tables2.tree_sequence()

at https://github.com/tskit-dev/tskit/blob/main/python/tests/test_tables.py#L1409 causes:
_tskit.LibraryError: Parent mutation ID must be < current ID

Activity

  1. added
    bug
    on Mar 1, 2021
  2. petrelharp commented on Mar 1, 2021

    @petrelharp
    Contributor

    I think the problem isn't so much "produces" but "doesn't fix" (as in #1197). So, arguably, this isn't a bug but an enhancement (unless there's actually some tables that sort breaks). But I agree, it's an enhancement that we should do.

  3. added this to the C API 0.99.12 milestone on Apr 21, 2021
  4. jeromekelleher commented on Jul 23, 2021

    @jeromekelleher
    Member

    Adding this to 1.0 for now, but can probably bump if we don't decide to fix the mutation ordering for that.

  5. benjeffery commented on Sep 23, 2025

    @benjeffery
    MemberAuthor

    Fixed in #3257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions