Repository navigation
Require documented ODEInterface wrapper API - #116
ChrisRackauckas merged 2 commits into
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
The owner PR shipped the public wrapper API as a non-breaking 0.5.2 release rather than 0.6.0, so the compat entry follows it. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PwQXJfsgRjUXdYXZrw3LT
|
Owner PR merged and registered, so the compat entry now points at the real release: The owner PR shipped as a non-breaking 0.5.2 rather than 0.6.0 — the Verified locally against the registered release ( Unresolved: this PR is versioned as a patch but is breaking
This repo's own README example (README.md lines 33–44), run verbatim on this branch: ODEInterfaceDiffEq is post-1.0, so this needs 6.0.0, not 5.2.3. Note the test suite does not catch it: Two ways out, not applied here pending a decision:
|
* Restore the documented SciML common interface as explicit exports
`d732fae` ("Require documented ODEInterface wrapper API", #116) dropped
`@reexport using DiffEqBase` from `src/ODEInterfaceDiffEq.jl`. That reexport was
this package's entire common-interface surface: with it gone, `using
ODEInterfaceDiffEq` no longer brings `ODEProblem`, `solve`, `ReturnCode` or the
callbacks into scope, so the README's own Lorenz example -- `using ODEInterface,
ODEInterfaceDiffEq; prob = ODEProblem(lorenz, u0, tspan); solve(prob, dopri5())`
-- fails with `UndefVarError`. The package's tests never noticed because the same
commit added `using DiffEqBase` to `test/callbacks.jl`.
Rather than restore the blanket reexport (which put all 196 DiffEqBase names,
including problem types for equation classes ODEInterface cannot touch, into
every user's namespace), export exactly the names normal documented use needs:
* the problem, function and solution types these solvers accept -- `ODEProblem`,
`ODEFunction`, `ODESolution`, `NullParameters`;
* `solve`/`init`/`solve!`/`step!`/`remake`;
* the ensemble interface, which works through the generic `solve` path;
* the callbacks, which this package implements (`src/integrator_utils.jl`):
`CallbackSet`, `ContinuousCallback`, `DiscreteCallback`,
`VectorContinuousCallback`, `DECallback`, `DEIntegrator`, `DEStats`;
* the integrator functions this package actually defines methods for --
`savevalues!`, `change_t_via_interpolation!`, `get_tmp_cache`, `u_modified!`,
`set_proposed_dt!`, plus `terminate!`, which callbacks call;
* `ReturnCode` and `successful_retcode`, used throughout the tests; and
* the DAE initialization algorithms `src/initialize.jl` implements
`initialize_dae!` for: `DefaultInit`, `NoInit`, `CheckInit`, `OverrideInit`.
Deliberately left out: `BrownFullBasicInit`/`ShampineCollocationInit` (no
`initialize_dae!` method here), the integrator hooks with no method for
`ODEInterfaceIntegrator` (`add_tstop!`, `reinit!`, `get_du`, `check_error`, ...),
and every SDE/DDE/BVP/optimization type DiffEqBase carried along.
Each name is imported from the module that owns it -- SciMLBase for all but
`DefaultInit`, which DiffEqBase owns -- so nothing changes about who documents
them. This only adds names back that `using ODEInterfaceDiffEq` used to provide,
so it is a minor bump, not a break.
`test/qa/qa.jl` declares the same list through `reexports_allow`, and a new
testset asserts every approved name is both in `names(ODEInterfaceDiffEq)` and in
scope from `using ODEInterfaceDiffEq`, so the allow-list cannot drift from the
exports.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rmh6B9eoW3N8oCbuuVPVxJ
* Document the reexported SciML common interface
A restored export that is not documented is only half the fix: a reader cannot
see what `using ODEInterfaceDiffEq` gives them or which package actually owns
each name, and the next QA sweep has no way to tell the reexport was deliberate.
Add a "Reexported SciML common interface" section to the rendered docs page,
grouped by role (problems, functions, solutions, ensembles, solving, integrator
interface, return status, callbacks, initialization algorithms), naming and
linking SciMLBase and DiffEqBase as the owners, and stating the boundary: the
integrator functions listed are exactly the ones this package implements methods
for, `BrownFullBasicInit`/`ShampineCollocationInit` are deliberately excluded,
and anything else must be imported from SciMLBase or DiffEqBase directly.
The docs list, the `export` block in src/ODEInterfaceDiffEq.jl and the
`REEXPORTS` tuple in test/qa/qa.jl are the same list in three places.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rmh6B9eoW3N8oCbuuVPVxJ
---------
Co-authored-by: Claude <noreply@anthropic.com>
Summary
Validation
Pkg.test()against the registered ODEInterface v0.5.2run_qa(ODEInterfaceDiffEq)git diff --checkDepends on luchr/ODEInterface.jl#41, merged and registered as v0.5.2.
Ignore until reviewed by @ChrisRackauckas.