Repository navigation
Fix plot idxs dimension check to use transform output arity - #1609
Merged
ChrisRackauckas merged 3 commits intoSep 25, 2026
Merged
Conversation
The plot recipe asserted length(var)-1 == dims on normalized idxs specs, rejecting mixes like [3, (f,0,3,4)] when f returns a 2-tuple even though both series are 2-D. Check each transform's output length and throw ArgumentError on genuine mismatches. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI 2026.09.18-9a7762b Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/jobs/fix-SciMLBase-DE360/log.txt on amdci2.julia.csail.mit.edu
Require DEFAULT_PLOT_FUNC for the short time-series label branch so custom transforms keep f(...) labels, and take series dims from evaluated map(f, ...) output instead of probing with integer 1s. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI 2026.09.18-9a7762b Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/jobs/fix-SciMLBase-DE360/log.txt on amdci2.julia.csail.mit.edu
Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI 2026.09.18-9a7762b Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/jobs/fix-SciMLBase-DE360/log.txt on amdci2.julia.csail.mit.edu
ChrisRackauckas
marked this pull request as ready for review
September 25, 2026 02:17
ChrisRackauckas-Claude
pushed a commit
to ChrisRackauckas-Claude/SciMLBase.jl
that referenced
this pull request
Sep 25, 2026
Master advanced with two commits affecting the moved recipe code and QA: - SciML#1609 rewrites the plot idxs dimension check to use each transform's output arity (solplot_vecs_and_labels/integplot_vecs_and_labels lose their dims argument and assert on output length instead of idxs input arity, throwing ArgumentError on genuine mismatches). The core helper changes merge cleanly; the integplot_vecs_and_labels side is ported into SciMLBaseRecipesBaseExt where that function now lives, keeping the SciMLBase.-qualified call style. - SciML#1608 replaces `Base.Callable` (non-public) with SciMLBase's local `Callable` alias, clearing the all_qualified_accesses_are_public QA failure seen on Julia 1.11+. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <[email protected]> Agent-Harness: Devin (SWE-2 Max) Agent-Model: SWE-2 Max Agent-Session: /home/crackauc/sandbox/fleet-master-jobs/nw-scimlbase-1092/log.txt
Merged
ChrisRackauckas
referenced
this pull request
Sep 26, 2026
Agent-Harness: Claude Code Agent-Model: claude-opus-5-5[1m] Agent-Session: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 on Chris's Mac (session ID, no URL) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The plot recipe asserted
length(var) - 1 == dimsover normalizedidxsspecs, conflating each spec's input arity with the plotted output dimension. That rejected legal mixes such asplot(sol, idxs=[3, (f,0,3,4)])whenf(t,a,b)=(t,a+b)(both series are 2-D).Follow-up (independent review #1): (1) short-label branch also required
dims==2, so(adder,0,3,4)was labelled"u[4]"instead of"f(t,u[3],u[4])"— now also requiresx[1] === DEFAULT_PLOT_FUNC. (2) probing transforms with integer1s broke typed/DomainErrortransforms — deleted probe helpers; dims come fromlengthof each series' evaluatedmap(f, ...)output, withArgumentErroron a genuine 2-D/3-D mix.Follow-up (independent review #2): deleted the orphan history comment between
DEFAULT_PLOT_FUNCandisdenseplot; trimmed the#360test preamble to one line.Same logic on the integrator plot recipe. Related/future: SciMLBase PR #1305 intends to delegate these helpers to RecursiveArrayTools.
Review follow-up: before (new tests on prior PR code)
Review follow-up: after
Test group tail (
GROUP=CoreviaPkg.test)Not verified
diffeq_to_arrays/interpret_varsonly).length(var)locally (pre-existing; out of scope of this follow-up).What to push back on
dimsargument fromsolplot_vecs_and_labels/integplot_vecs_and_labels(developer interface; dims are now discovered during evaluation).(f,0,i)are now labelledf(t,u[i])instead ofu[i]; this is more accurate (e.g.(sq,0,3)plots u3²), but it is a visible label change.Fixes SciML/DifferentialEquations.jl#360
Please ignore this draft until reviewed by @ChrisRackauckas.
Risk assessment
AbstractTimeseriesSolutionand integrator plot recipes (solution_interface.jl). The consistency check now uses each series' evaluated output dimension instead of the idxs tuple length. Mixed specs that used to throwAssertionErrornow plot, and a genuine 2-D/3-D mix throwsArgumentError. One visible change: custom transforms(f,0,i)are labelledf(t,u[i])instead ofu[i]. Internal helpers only; no public API change.AssertionError) and pass after (23/23). The reporter's example matches the solution to 1e-14. The plotted data for every form that worked before is byte-identical before and after.GROUP=Corepasses.fwith integers broke Float-only transforms) with verdict CHANGES. Both were fixed. The re-review rated it low, fairly confident, verdict MERGE after removing a stray comment, which is now removed.Independent review #2 (Claude Code, Opus 5.5): low risk, MERGE after comment cleanup (done in
c9de4de7c).🤖 Generated with Cursor Agent CLI 2026.09.18-9a7762b (model: auto), transcript /home/crackauc/sandbox/goals/issue-backlog/jobs/fix-SciMLBase-DE360/log.txt on amdci2.julia.csail.mit.edu
Risk assessment and review coordination by 🤖 Claude Code (model: claude-opus-5-5[1m]), https://claude.ai/code/session_01NdFVhANTF4nepTbqYxjfRP