Skip to content

Clarify root retention when simplifying with unary nodes - #3525

Open
ZuolinCheng wants to merge 1 commit into
tskit-dev:mainfrom
ZuolinCheng:r6-018-issue-3450
Open

ZuolinCheng wants to merge 1 commit into
tskit-dev:mainfrom
ZuolinCheng:r6-018-issue-3450

Conversation

@ZuolinCheng

Copy link
Copy Markdown

Clarified that keep_unary and keep_unary_in_individuals can retain ancestry above the sample MRCAs with keep_input_roots=False. Both Python simplify docstrings link to a runnable three-sample example in the topological analysis guide.

Fixes #3450

Local validation
  • bash scratch/test-python.sh -m pytest -o addopts= -p no:cacheprovider --basetemp scratch/pytest repo/python/tests/test_topology.py -k Simplify --skip-slow --skip-network -q — 92 passed, 1 skipped, 316 deselected.
  • bash scratch/test-python.sh -m sphinx -b html -W -q -d scratch/docs-doctrees scratch/docs-src scratch/docs-html — focused HTML build passed. Both docstrings link to the example and the example links back to TreeSequence.simplify.
  • git -C repo diff --check — passed.
  • Validation covered the affected documentation and the selected simplification tests. The full manual and full test suite were outside those checks.
AI assistance
  • OpenAI Codex (GPT-6.2 Sol) assisted with implementation and local tests.
  • Gemini 4 Hydrogen High independently reviewed the patch.
  • The description was prepared with Codex assistance.

Assisted-by: Codex (GPT-6.2 Sol, xhigh)
Signed-off-by: Zuolin Cheng <zuolin8@vt.edu>
@jeromekelleher-bot

Copy link
Copy Markdown

🤖 AI generated message

Thanks for your interest in tskit, @ZuolinCheng, and for the work you have put into this.

We have just adopted a contribution policy (#3521), because maintainer time for review is limited. We now expect contributions to come from your own use of tskit, or from wanting to get involved in the project and learn how it works.

Could you read the policy and let us know how this pull request fits with it? It would help most to know what you were doing with tskit when you needed this change.

This note is on each of your open pull requests; one reply, on any of them, is enough.

This branch has not been deployed

No deployments
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.

Simplifying when keeping unary nodes but excluding input roots

2 participants