Skip to content

Drop OrdinaryDiffEqTsit5 dependency and ODE-solver helpers#212

Merged
mtfishman merged 2 commits into
mainfrom
mf/drop-tsit5-testdep
Apr 26, 2026
Merged

Drop OrdinaryDiffEqTsit5 dependency and ODE-solver helpers#212
mtfishman merged 2 commits into
mainfrom
mf/drop-tsit5-testdep

Conversation

@mtfishman
Copy link
Copy Markdown
Member

@mtfishman mtfishman commented Apr 26, 2026

Summary

  • Removes OrdinaryDiffEqTsit5 as a test/example dependency. The OrdinaryDiffEq stack is heavy and was pulled in only for one TDVP test and one example that compared a Tsit5-based local updater against a Krylov-based one.
  • Deletes src/solvers/timedependentsum.jl (TimeDependentSum, ScaledSum, related helpers) and src/solvers/ITensorsExtensions.jl (to_vec). These existed only to plug ITensors into ODE solvers; with the ODE example/test gone there are no in-tree consumers.
  • Deletes test/base/test_solvers/test_tdvp_time_dependent.jl and the examples/solvers/03_models.jl, 03_tdvp_time_dependent.jl, 03_updaters.jl files. Renames 04_tdvp_observers.jl to 03_tdvp_observers.jl and updates the example list in test_examples.jl accordingly.
  • Drops OrdinaryDiffEqTsit5 from test/Project.toml, test/base/test_solvers/Project.toml, and examples/solvers/Project.toml. Drops now-unused Compat and KrylovKit from examples/solvers/Project.toml.

Breaking change

TimeDependentSum and to_vec were exported. Removing them is breaking, so this bumps the version 0.3.45 -> 0.4.0 and updates the ITensorMPS compat pin in test/, docs/, and examples/ Project.tomls to "0.4".

The OrdinaryDiffEq stack is heavy and was pulled in only for an example
and one TDVP test that compared a Tsit5-based local updater against a
Krylov-based one. Removing it speeds up test/example loading and avoids
version-resolution friction with the broader OrdinaryDiffEq ecosystem.

Source-side cleanup:
- Delete `src/solvers/timedependentsum.jl` (`TimeDependentSum`,
  `ScaledSum`, related helpers).
- Delete `src/solvers/ITensorsExtensions.jl` (`to_vec`).
- Drop `TimeDependentSum` and `to_vec` from exports and from the
  exported-names test list.

Test/example cleanup:
- Delete `test/base/test_solvers/test_tdvp_time_dependent.jl` and the
  three `examples/solvers/03_*.jl` files (models, ODE updaters, time-
  dependent TDVP demo).
- Rename `examples/solvers/04_tdvp_observers.jl` to `03_tdvp_observers.jl`
  and update the example list in `test/base/test_solvers/test_examples.jl`.
- Drop `OrdinaryDiffEqTsit5` from the test, `test/base/test_solvers`,
  and `examples/solvers` Project.tomls; drop now-unused `Compat` and
  `KrylovKit` from `examples/solvers/Project.toml`.

Removing the public exports `TimeDependentSum` and `to_vec` is breaking,
so bump 0.3.45 -> 0.4.0 and update the package compat pin in `test/`,
`docs/`, and `examples/` Project.tomls accordingly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman force-pushed the mf/drop-tsit5-testdep branch from 0ea9876 to 5428261 Compare April 26, 2026 18:21
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.96%. Comparing base (3f3d76b) to head (2f91a99).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   90.33%   89.96%   -0.37%     
==========================================
  Files          54       52       -2     
  Lines        3610     3577      -33     
==========================================
- Hits         3261     3218      -43     
- Misses        349      359      +10     
Flag Coverage Δ
docs 18.14% <ø> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman enabled auto-merge (squash) April 26, 2026 18:45
@mtfishman mtfishman disabled auto-merge April 26, 2026 18:47
@mtfishman mtfishman enabled auto-merge (squash) April 26, 2026 19:05
@mtfishman mtfishman merged commit fe3c1c0 into main Apr 26, 2026
16 of 17 checks passed
@mtfishman mtfishman deleted the mf/drop-tsit5-testdep branch April 26, 2026 19:19
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