Skip to content

Expose datasets as pt.ds in addition to pt.dt - #1103

Merged
Zethson merged 8 commits into
mainfrom
feature/ds-alias
Sep 18, 2026
Merged

Zethson merged 8 commits into
mainfrom
feature/ds-alias

Conversation

@Zethson

@Zethson Zethson commented Sep 18, 2026

Copy link
Copy Markdown
Member

Closes #1100.
The dataset module is now available as both pt.ds and pt.dt, and all docstrings, tests and docs use pt.ds.
pt.dt keeps working as an undeprecated alias, so existing user code is unaffected.

`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.
@Zethson
Zethson merged commit e8abf85 into main Sep 18, 2026
22 checks passed
@Zethson
Zethson deleted the feature/ds-alias branch September 18, 2026 11:49
@codecov-commenter

codecov-commenter commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.97%. Comparing base (af8a836) to head (ef4c8ca).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1103      +/-   ##
==========================================
+ Coverage   79.94%   79.97%   +0.02%     
==========================================
  Files          55       55              
  Lines        7533     7534       +1     
==========================================
+ Hits         6022     6025       +3     
+ Misses       1511     1509       -2     
Files with missing lines Coverage Δ
src/pertpy/__init__.py 94.44% <100.00%> (+0.32%) ⬆️
src/pertpy/metadata/_cell_line.py 54.44% <ø> (ø)
src/pertpy/preprocessing/_guide_rna.py 88.14% <ø> (ø)
src/pertpy/tools/_augur.py 89.59% <ø> (ø)
src/pertpy/tools/_cinemaot.py 59.24% <ø> (ø)
src/pertpy/tools/_coda/_base_coda.py 61.06% <ø> (+0.31%) ⬆️
src/pertpy/tools/_coda/_sccoda.py 88.23% <ø> (ø)
src/pertpy/tools/_coda/_tasccoda.py 76.74% <ø> (ø)
src/pertpy/tools/_dialogue.py 93.02% <ø> (ø)
...ertpy/tools/_differential_gene_expression/_base.py 95.93% <ø> (ø)
... and 13 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

move from dt to ds

2 participants