Repository navigation
Description
Overview
pynufft is no longer a dependency of any PyAuto library — @PyAutoLabs/PyAutoArray#475 deleted TransformerNUFFTPyNUFFT and dropped pynufft from both the optional and dev extras. Four CI recipes and one install doc still install it. This is phase 3 of 3 of the pynufft-removal residue sweep (phases 1 and 2 shipped 2026-08-23); it is the CI + install-doc tier and is independent of the other two.
Severity is low and this is not urgent: every site pins 2025.1.1, not the broken 2022.2.2, so nothing is hitting the scipy.linalg.pinv2 failure and no build is red. What it costs is install time and unnecessary resolver surface on every release/validation run.
Plan
- Drop
pip install pynufft==2025.1.1from PyAutoHandsrelease.yml(3 sites — one bare, two alongsidenumba, wherenumbais kept). - Drop the same line from PyAutoHeart
workspace-validation.yml(mode=release install step;numbakept). - Delete
pip install pynufftfrom PyAutoCTIdocs/installation/source.rst, having first verified PyAutoCTI's suite genuinely passes without it. - Confirm the affected workflows green afterwards — every run and every matrix leg.
Detailed implementation plan
Work Classification
Workspace / CI-and-docs. No PyAuto* library source changes, so there is no library-first merge gate — the three PRs are independent of one another and can merge in any order.
Affected Repositories
- PyAutoLabs/PyAutoHands (primary — 3 of the 4 CI sites)
- PyAutoLabs/PyAutoHeart
- PyAutoLabs/PyAutoCTI
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| PyAutoHands | main | clean |
| PyAutoHeart | main | clean |
| PyAutoCTI | main | clean |
Suggested branch: feature/pynufft-removal-phase-3 (all three repos)
Mobile session — no worktrees; work is done against fresh clones and pushed as three feature branches.
Implementation Steps
PyAutoHands/.github/workflows/release.ymlrelease_test_pypi→Testsstep (~:296): delete the barepip install pynufft==2025.1.1, leavingpytestandnumba.run_smoke_tests→Install from TestPyPI at pinned version(~:355):pip install pynufft==2025.1.1 numba→pip install numba.release_workspaces→Regenerate API audit baseline(~:774): same rewrite.- The neighbouring "matplotlib deliberately unpinned" comments are about matplotlib, not pynufft — left untouched.
PyAutoHeart/.github/workflows/workspace-validation.yml(~:302), themode=release"Install TestPyPI wheels" step:pip install pynufft==2025.1.1 numba→pip install numba. Thenufftax>=0.6.1,<0.7.0install two lines down is the live NUFFT backend and stays.PyAutoCTI/docs/installation/source.rst:58: deletepip install pynufftunder "For unit tests to pass you will also need the following optional requirements".
Verification that PyAutoCTI's suite does not need pynufft
Verified rather than assumed, three ways:
PyAutoCTI/.github/workflows/main.ymlis a thin caller of PyAutoHeart's reusablelib-tests.yml, which installspip install ./PyAutoCTI[optional](plus the PyAutoNerves/PyAutoFit/PyAutoArray chain) and never installs pynufft in either leg.PyAutoCTI/pyproject.toml'soptionalextra is["numba"]— pynufft is not in it.- The latest
mainrun of that workflow (run 31134701968, headf40b2f7) is success across every leg:unitteston Python 3.12 and 3.13, plus theunittest-nojaxleg. - A full-tree grep of PyAutoCTI finds pynufft only in
paper/paper.bib,files/citations.tex(both published-record material, deliberately out of scope) and the doc line being deleted — no import, no test, no config.
Key Files
PyAutoHands/.github/workflows/release.yml— 3 sitesPyAutoHeart/.github/workflows/workspace-validation.yml— 1 sitePyAutoCTI/docs/installation/source.rst— 1 line
Green-CI caveat (read before closing this issue)
Every changed line lives on a release path, not on a PR-triggered path:
release.ymlisworkflow_dispatch-only; theTestsstep runs in rehearsal and live mode, whilerun_smoke_testsandrelease_workspacesare live-only.workspace-validation.yml's pynufft line is inside themode=releaseinstall step, reached only viarelease-integrate.yml(Brain Release Agent dispatch, after an M1 TestPyPI rehearsal). The continuousmode=smokechannel never executed it.
So ordinary PR CI cannot exercise these lines. Full green confirmation therefore lands on the next release rehearsal / nightly release run; each repo's own PR checks are the pre-merge signal. Heart is currently RED on "release validation FAILED" for unrelated reasons.
Out of scope, noted while verifying
PyAutoCTI/docs/installation/source.rststill listspip install pylops==1.11.1in the same block, and CTI's CI installs no pylops either while passing — the same evidence falsifies that line too. Not touched here (this task is scoped to pynufft); worth a follow-up.- The same file points at
PyAutoCTI/requirements.txtandPyAutoArray/optional_requirements.txt, neither of which exists any more (packaging moved topyproject.tomlextras). Separate doc rot, separate task. PyAutoCTI/files/citations.texstill asks users to cite PyNUFFT. Published-record class, deliberately untouched.
Original Prompt
Click to expand starting prompt
# Phase 3: stop installing pynufft in Hands/Heart CI and PyAutoCTI install docs
Type: maintenance
Target: ci
Repos:
- @PyAutoHands
- @PyAutoHeart
- @PyAutoCTI
Difficulty: low
Autonomy: supervised
Priority: normal
Status: draft
Filed: 2026-08-23
Phase 3 of 3. Parent: `pynufft_removal_downstream_residue.md`. Independent of
phases 1 and 2.
`pynufft` is no longer a dependency of any PyAuto library (@PyAutoArray#475
dropped it from both `optional` and `dev`), but four CI recipes and one install
doc still install it.
## Sites
- `@PyAutoHands/.github/workflows/release.yml:296,355,774` —
`pip install pynufft==2025.1.1` (once bare, twice with `numba`)
- `@PyAutoHeart/.github/workflows/workspace-validation.yml:302` — same
- `@PyAutoCTI/docs/installation/source.rst:58` — `pip install pynufft`, listed
under "For unit tests to pass you will also need the following optional
requirements". **Confirm PyAutoCTI's suite genuinely has no such need before
deleting the line** — verify, do not assume.
## Severity
Not urgent. These pin **2025.1.1**, not the broken `2022.2.2`, so they are
**not** hitting the `scipy.linalg.pinv2` failure and no build is red. This is
wasted install time and unnecessary resolver surface.
Worth knowing while working: these recipes are the only reason the local dev
environment still has `pynufft 2025.1.1` installed at all — removing them
changes what a fresh local env contains.
## Acceptance
- No PyAuto CI workflow installs `pynufft`.
- PyAutoCTI's install doc no longer instructs users to, with evidence its tests
pass without it.
- The affected workflows are confirmed green afterwards — **every run and every
matrix leg**, not just the first one reported.
Activity
Jammy2211 commentedon Aug 24, 2026
Shipped
Merged 2026-08-24 across all three repos:
release.yml— 3 sitesworkspace-validation.yml— 1 sitedocs/installation/source.rstNo PyAuto CI workflow installs
pynufftany more, and CTI's install doc no longer tells users to.Scope change: pylops went too
The CTI stanza held
pip install pynufftandpip install pylops==1.11.1. The maintainer confirmed mid-task that pylops is defunct, so both went and the sentence went with them — a heading over an emptycode-blockis invalid RST. Same evidence covers both: no import or reference anywhere in PyAutoCTI (onlypaper/paper.bib),optionalextra is["numba"], CI installs neither and the suite passes. This closes the "out of scope, noted while verifying" item in the plan above.The detour: PyAutoCTI
mainwas already redOpening #107 surfaced a failure on all three CTI legs that was not the diff — a single deleted
.rstline, run on the PR merge ref, so the failure wasmain's:lib-tests.ymlclones PyAutoArraymainat run time, and PyAutoArray#440's zero-lengthshape_nativeguard (2026-08-09) landed after CTI's lastmainrun (2026-08-07), so the break sat dormant for two weeks and would have blocked every CTI PR.The guard didn't break a working test — it exposed one that checked nothing:
pixels=(2, 3)on region(0, 3, 5, 8)of a 3×10 fixture resolves to columns 10–11, extracting(3, 0), and(empty == [[10.0], [10.0], [10.0]]).all()is vacuouslyTruefor any expected value.10.0isn't even in the fixture. #108 fixed it test-only and deliberately left open whether such a window should raise or clip — tracked in PyAutoMind asdraft/bug/autocti/serial_eper_zero_width_region_vs_autoarray_guard.md.The green-CI caveat in the plan still stands
Every Hands/Heart line changed here is on a release path (
release.ymlisworkflow_dispatch-only; Heart's is in themode=releaseleg), so ordinary PR CI cannot exercise them. Pre-merge signal was each repo's own checks plus the diff; full confirmation lands on the next release rehearsal / nightly run. The CTI leg is fully exercised and green.Heart was RED on "release validation FAILED" throughout — pre-existing, unrelated, acknowledged at launch.
Still open (untouched, as planned)
PyAutoArray/optional_requirements.txtandPyAutoCTI/requirements.txt— neither file exists any more. Separate doc rot.paper/paper.bibandfiles/citations.texstill cite PyNUFFT and PyLops — published-record material, deliberately out of scope.Generated by Claude Code