Skip to content

Use pertpy's rng argument (SPEC 7) - #87

Merged
Zethson merged 1 commit into
mainfrom
spec7-rng
Dec 4, 2026
Merged

Zethson merged 1 commit into
mainfrom
spec7-rng

Conversation

@Zethson

@Zethson Zethson commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Needs scverse/pertpy#1237 merged first, since the scCODA/tascCODA case study now seeds run_nuts with rng instead of rng_key.
An explicit rng=1234 draws from a NumPy generator, so re-executing the case study gives different MCMC samples than the stored outputs, while the Augur tutorial only drops random_state=None, which predict uses when rng is omitted.

pertpy renamed its seeding arguments to `rng` following SPEC 7.
The scCODA/tascCODA case study now seeds `run_nuts` with `rng` instead of `rng_key`.
The Augur tutorial drops `random_state=None`, which is the default of `predict`.
The old names keep working, so the outputs are unchanged.
@review-notebook-app

Copy link
Copy Markdown

Review Notebooks

Notebooks changed:

Review visual diffs and comment on any notebook cell. All comments sync back to this PR.


Powered by ReviewNB

@Zethson
Zethson merged commit 68092e8 into main Dec 4, 2026
@Zethson
Zethson deleted the spec7-rng branch December 4, 2026 12:08
Zethson added a commit to scverse/pertpy that referenced this pull request Dec 4, 2026
Points at scverse/pertpy-tutorials#87, which seeds the scCODA/tascCODA case study with rng and drops the redundant random_state=None from the Augur tutorial.
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