Skip to content

Conversation

@hyanwong
Copy link
Member

Fixes #615. It was logically easier (and probably more generally useful) for me to implement a get_left_child rather than a get_left_sib method, so to position labels we just check to see if a node is the left child of its parent.

Will stick a test in if you think this is a reasonable approach, @jeromekelleher .

@jeromekelleher
Copy link
Member

LGTM. A couple of quick tests will be fine, no need for anything elaborate.

@hyanwong
Copy link
Member Author

If you are now happy with #570 I'll wait for that to be merged, then sort this out with a simple test or two, as that PR will change the drawing code needed and the test writing.

@jeromekelleher
Copy link
Member

OK, sounds good. I you want #570 merged, give a quick rebase and we'll get it in next.

@hyanwong
Copy link
Member Author

Rebased to master - I noticed that the previous verification method was missing "minlex_postorder": when I add it in, the tests fail, which I wasn't expecting, so I've stuck in the code, but commented it out and opened a review. Do you have any inkling of why this fails @jeromekelleher (I presume you wrote the test)?

@mergify mergify bot merged commit 801ebbc into tskit-dev:master May 15, 2020
@hyanwong hyanwong deleted the get_left_sib branch September 11, 2020 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minlex ordering means node label positioning no longer correct

2 participants