Skip to content

Fix rescale_tree_sequence - #541

Open
nspope wants to merge 3 commits into
tskit-dev:mainfrom
nspope:fix-rescale-tree-sequence
Open

nspope wants to merge 3 commits into
tskit-dev:mainfrom
nspope:fix-rescale-tree-sequence

Conversation

@nspope

@nspope nspope commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

This convenience function (not yet documented) was broken by earlier changes to the internal rescaling API.

…uence

rescale_tree_sequence passed the 2-D age constraints as nodes_fixed, so every
call failed. Add tests: rescaling keeps the topology and the sample ages, and
leaves simulated ages, which already match the mutational clock, nearly
unchanged. Drop the docstring's progress parameter, which the function does
not take.
@nspope
nspope marked this pull request as ready for review December 2, 2026 17:07
@nspope
nspope requested a review from hyanwong December 2, 2026 17:07
@nspope

nspope commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@hyanwong would you mind taking a quick glance over this? (as it's adding a utility to the public API)

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.

1 participant