Skip to content

Preserve population IDs in ancestry provenance - #2556

Closed
rpinho wants to merge 2 commits into
tskit-dev:mainfrom
rpinho:fix-sample-id-provenance
Closed

rpinho wants to merge 2 commits into
tskit-dev:mainfrom
rpinho:fix-sample-id-provenance

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown

An ancestry run with a sample mapping keyed by population ID can fail during simulation or replay. Run sim_ancestry with {0: 2} and replay the call from its provenance. The patch makes population IDs encodable as JSON keys and restores their type on replay. The test compares the tables produced with Python and NumPy IDs against their replays.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

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.

1 participant