Skip to content

Use pt.ds instead of pt.dt - #75

Merged
Zethson merged 1 commit into
mainfrom
feature/ds-alias
Sep 18, 2026
Merged

Zethson merged 1 commit into
mainfrom
feature/ds-alias

Conversation

@Zethson

@Zethson Zethson commented Sep 18, 2026

Copy link
Copy Markdown
Member

Follow-up to scverse/pertpy#1103, which exposes the dataset module as pt.ds.
pt.dt remains a working alias, so this only changes how the tutorials read.

pertpy exposes the dataset module as `pt.ds` (scverse/pertpy#1100); `pt.dt`
remains a working alias, so this is a readability change only.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Zethson
Zethson merged commit 813f180 into main Sep 18, 2026
Zethson added a commit to scverse/pertpy that referenced this pull request Sep 18, 2026
Pulls in scverse/pertpy-tutorials#75 (the `pt.dt` -> `pt.ds` rename) and
scverse/pertpy-tutorials#73 (the signature reversal section).
Zethson added a commit that referenced this pull request Sep 18, 2026
Follow-up to #75, which crossed with #73.
Zethson added a commit to scverse/pertpy that referenced this pull request Sep 18, 2026
* Prefer `pt.ds` over `pt.dt` for datasets

`ds` reads as "datasets" whereas `dt` was easily mistaken for "data" or
"datetime". The dataset module is now exposed as both `pt.ds` and `pt.dt`,
with all docstrings, tests and docs switched to `pt.ds`. `pt.dt` keeps working
unchanged and without a deprecation warning, so no user code breaks.

The prek mypy hook cannot spawn `mypy` in this checkout, so mypy was run
separately against the project interpreter and passes.

* Bump the tutorials to the `pt.ds` notebooks

Pulls in scverse/pertpy-tutorials#75 (the `pt.dt` -> `pt.ds` rename) and
scverse/pertpy-tutorials#73 (the signature reversal section).

* Drop the datasets accessor note

* Drop the alias test

* Rename the merged enrichment example to `pt.ds`

* Drop the alias comment
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