Skip to content

Require MiniRes 0.3.3, which has the tangent linear model - #209

Merged
KriFos1 merged 2 commits into
Python-Ensemble-Toolbox:mainfrom
KriFos1:build/minires-0.3.3
Dec 3, 2026
Merged

KriFos1 merged 2 commits into
Python-Ensemble-Toolbox:mainfrom
KriFos1:build/minires-0.3.3

Conversation

@KriFos1

@KriFos1 KriFos1 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Proposal

Require MiniRes 0.3.3, released today with the tangent linear model (patnr/MiniRes#1), so that lowrankcg (#208) runs on MiniRes from any install, and CI runs the tests it has been skipping.

What changes

  • pyproject.toml: the minires extra goes from minires>=0.3.2 to minires>=0.3.3.
  • uv.lock: uv lock --upgrade-package minires. Four lines change, all of them MiniRes's (version, sdist, wheel, specifier). MiniRes 0.3.3 declares the same requirements as 0.3.2, so no other package moves, and the quarterly Dependabot update is not affected.
  • The fallbacks Newton-CG with Gauss–Newton Hessian actions (lowrankcg), and run_jvp for MiniRes #208 carried for a MiniRes without the tangent model are removed: the two checks for minires.tlm.tlm in the wrapper, the skips in tests/test_minires_sim.py and tests/test_benchmark_minires.py, and the test that simulated such a MiniRes.

Entry points and public APIs

No signature changes. One behaviour change:

  • simulator.minires.MiniRes.run_jvp no longer raises NotImplementedError on a MiniRes without tlm.tlm; such a MiniRes is below the floor.

MiniRes.run_vjp always builds and shares the tapes of a state now. Its products are unchanged.

Tests

With the environment CI builds, uv sync --locked --extra dev --extra minires, which installs MiniRes 0.3.3 from PyPI: 918 passed, none skipped, 6 xfailed, 1 xpassed. On #208 the same suite had 9 skipped. ruff check src tests and uv lock --check are clean.

KriFos1 and others added 2 commits December 3, 2026 12:04
MiniRes 0.3.3 has the tangent linear model, minires.tlm.tlm, that run_jvp
and so lowrankcg need on MiniRes. The floor of the minires extra says so,
for an install without the lock as well.

uv lock --upgrade-package minires: the four lines of minires are all that
moves in uv.lock. Every other package stays where the quarterly update put
it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… model

With MiniRes 0.3.3 required, run_jvp no longer checks for minires.tlm.tlm,
the wrapper always shares the tapes of a state between sweeps, and the
tangent tests and the benchmark's Newton-CG smoke test run instead of
skipping where an older MiniRes was installed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@KriFos1
KriFos1 merged commit 846d6a0 into Python-Ensemble-Toolbox:main Dec 3, 2026
4 checks passed
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