[pull] master from SciML:master - #71
Merged
Merged
Conversation
`Document MATLAB solver API and enable strict QA` (4fdd039, #94) dropped `@reexport using DiffEqBase` from src/MATLABDiffEq.jl. That reexport was the only thing putting `ODEProblem`, `solve`, `ReturnCode` and the rest of the common interface into scope, so the README's documented workflow using MATLABDiffEq, ParameterizedFunctions prob = ODEProblem(f, u0, tspan) sol = solve(prob, MATLABDiffEq.ode45()) stopped working with `UndefVarError`. The same commit is its own best evidence: it had to rewrite both README examples to `using MATLAB, MATLABDiffEq, ParameterizedFunctions, SciMLBase` and to write the new docs/src/index.md example as `using MATLABDiffEq, SciMLBase`. Papering over the documentation is not the same as keeping the interface. Rather than restore the blanket reexport (420 names, most of them for equation classes MATLAB's ODE suite cannot solve), export exactly the interface a user works with: * the problem, function and solution types for ODEs, the only class `__solve` accepts here: `ODEProblem`, `ODEFunction`, `ODESolution`, plus `DEStats` and `NullParameters`; * `solve` and `remake`; * `ReturnCode` and `successful_retcode`; * the ensemble types, which drive `solve` generically. Deliberately left out: DAE/SDE/DDE and every other non-ODE problem type, the callbacks (`__solve` errors with "Callbacks are not supported in MATLABDiffEq.jl"), and the integrator interface (MATLABDiffEq implements `__solve` only). Those names error identically before and after. The MATLAB algorithms themselves stay `@public` but unexported, so they are still written qualified as `MATLABDiffEq.ode45()`. Restore both README examples to `using MATLABDiffEq, ParameterizedFunctions` and the docs/src/index.md example to a bare `using MATLABDiffEq`. Document the reexported surface on a new rendered API page, docs/src/api.md, grouped by role with SciMLBase named and linked as the owner of every name, a closing boundary line, and the reasoning for each deliberate omission. Wire the page into docs/make.jl. The list is declared through `reexports_allow` in test/qa/qa.jl and covered by a test that every approved name is in `names(MATLABDiffEq)` and actually in scope from `using MATLABDiffEq`, so the docs list, the `export` block and the allow-list cannot drift apart. Adding back names that used to be exported is not breaking. Claude-Session: https://claude.ai/code/session_01Rmh6B9eoW3N8oCbuuVPVxJ Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )