Repository navigation
Make has_sys public API - #1474
Conversation
6136f47 to
d9e5d9f
Compare
|
Rebased onto current Re-verified after the rebase: Runic 1.7.0 Note on why this PR previously showed no checks at all: the workflows only ever ran against my first commit ( Note on the failures that did appear on
The Documentation one is a On versioning: |
|
CI update after the rebase. Everything that has finished passes except one downstream job, and that one is not caused by this PR. Passing so far:
The error is in DiffEqBase's test suite:
-export solve, solve!, init, discretize, symbolic_discretize
-export step!, deleteat!, addat!, get_tmp_cache,
This PR does not touch any of that — #1476 is the fix-forward and restores exactly those exports: +export solve, solve!, init, step!, discretize, symbolic_discretizeSo this job should go green here once #1476 lands, with no change needed on this branch. |
`has_sys` is the only member of the `AbstractSciMLFunction` field-existence trait family that is neither public nor documented — `has_jac`, `has_jvp`, `has_vjp`, `has_tgrad`, `has_analytic` and `has_initialization_data` all are. Downstream solver code that must decide whether a problem carries symbolic metadata (and therefore must keep `u0`/`p` concrete for symbolic indexing and the initialization pipeline) has no public way to ask, so it reaches into the internal name instead. Give it a docstring, add it to the `@public` trait block, and render it alongside its siblings in the SciMLFunctions interface docs. Co-Authored-By: Chris Rackauckas <[email protected]>
d9e5d9f to
86a1907
Compare
Summary
has_sysis the only member of theAbstractSciMLFunctionfield-existence trait family that is neither public nor documented. Its siblings —has_jac,has_jvp,has_vjp,has_tgrad,has_analytic,has_initialization_data— are all in the@publicblock and all render indocs/src/interfaces/SciMLFunctions.md.Concretely, NonlinearSolveBase's
AutoDePSpecializepath needs it: it declines parameter de-specialization for problems carrying symbolic metadata, sincepmust stay concrete for symbolic indexing and the initialization pipeline. Today that access tripsExplicitImports' non-public-qualified-access check.This PR:
has_sysat its definition site@publictrait blockhas_syscoverage totest/existence_functions.jl, including the no-sys-field short-circuitRebase note
This PR originally also made
ImmutableNonlinearProblempublic. That half has been dropped from this PR because #1482 landed on master first and already does it — declares it@public, gives it a docstring, and adds the@docsentry next toNonlinearProblem. Nothing is lost; only thehas_syshalf remains here.The version bump also moved: the original target 3.41.0 was taken by #1482 and is registered in General, so this is now 3.42.0.
Validation
Run locally on the rebased branch (master @ 79ed05e):
The QA group runs
api_docs_kwargs = (; rendered = true, ...), so it is what verifies the new public name actually carries a docstring and appears in the rendered docs.Runic
--checkon the changed source files exits 0.Follow-up: SciML/NonlinearSolve.jl will consume this to drop its internal
has_sysaccess.