Repository navigation
Make Makie timeseries recipes Observable-aware - #1589
Merged
ChrisRackauckas merged 1 commit intoSep 7, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Scalar `ODESolution` is an `AbstractVector{<:Real}`, so Makie's
`expand_dimensions(::PointBased, ::RealVector)` plotted indices instead of
time and rejected `idxs`. `step!` also replaces the solution wrapper with an
`isequal` copy that ComputePipeline treated as unchanged, so an `Observable`
assigned at `init` never reconverted.
Addresses SciML#1588
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Grok <[email protected]>
Agent-Harness: Grok Build TUI
Agent-Model: grok-4.6
Agent-Session: local /home/crackauc/.grok/sessions/%2Fhome%2Fcrackauc%2Fsandbox%2Ftmp_20260907_062232_52914/01a07b3f-05bc-77d1-9346-1f1581b8129f
ChrisRackauckas-Claude
force-pushed
the
grok/makie-observable-sol-1588
branch
from
September 7, 2026 12:14
3fe96ff to
60d87e0
Compare
Comment on lines
+18
to
+28
| if isdefined(Makie, :ComputePipeline) | ||
| function Makie.ComputePipeline.is_same( | ||
| ::SciMLBase.AbstractTimeseriesSolution, | ||
| ::SciMLBase.AbstractTimeseriesSolution | ||
| ) | ||
| return false | ||
| end | ||
| function Makie.ComputePipeline.is_same( | ||
| ::SciMLBase.DEIntegrator, | ||
| ::SciMLBase.DEIntegrator | ||
| ) |
Member
There was a problem hiding this comment.
Ehh kind of a hack, but hopefully not too much.
ChrisRackauckas
marked this pull request as ready for review
September 7, 2026 14:16
1 of 2 tasks
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 7, 2026
DEIntegrator is not an AbstractVector and same-object mutation already invalidates ComputePipeline, so those overrides were dead weight. Add a scalar Observable(sol) test that covers both #1588 failure modes together. Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Cursor <[email protected]>
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 10, 2026
- Compare solution parameter cotangents against the solution's own parameters (#1587) - Make Makie timeseries recipes Observable-aware (#1589) - Add 32-bit Core CI lane via test_groups.toml (#1590) - Trim unused Makie DEIntegrator hooks after #1589 (#1591) - Keep 32-bit CI lane hard-failing. (#1593) - Avoid broadcast-based getproperties on SciML functions. (#1595) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 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.
Please ignore this PR until it is reviewed by @ChrisRackauckas.
Makie was skipping the SciML timeseries recipe for two independent reasons, both of which made
plot(osol)look frozen whenosol[]was updated.ODESolution <: AbstractVector{<:Real}, so Makie'sexpand_dimensions(::PointBased, ::RealVector)turnedplot(sol)intoLinesof indices vs values and rejectedidxs.step!replacesintegrator.solwith a new wrapper that shares the mutatedt/uarrays. Makie 0.24ComputePipeline.is_samethen returnsisequal, which is true, and skips reconversion. Wrapping the Observable after the first step already reconverted (same-object mutation); wrapping atinitdid not.This PR opts those types out of PointBased index expansion and forces
is_sametofalseso an Observable assignment always reconverts.What this does not change. Axis autolimits still do not follow a
PlotListdata update. The MRE in #1588 wraps after the first step, so converted points already grew;recordlooks frozen because the first displayed frame calledreset_limits!around[0,1]and later frames did not.empty!(ax); plot!(osol)works becauseplot!on an open Axis resets limits. After this PR, callautolimits!(ax)(orreset_limits!(ax)) if the window should grow with the series. That is a MakiePlotListissue, not missing reconversion.Verification
Discriminating tests in
test/downstream/plot_lines.jl. Fail-before on unfixedSciMLBaseMakieExt(SciMLBase 3.53.1, Makie 0.24.14, OrdinaryDiffEq 7.8.1):Pass-after with the extension restored (same tests, then the official
test/downstream/plot_lines.jl):Runic 1.10.0 formatted the changed files.
typoswas clean. ExplicitImports onSciMLBaseMakieExt(all 6 checks) passed after allow-listingexpand_dimensions,ComputePipeline, andis_sameas Makie recipe plumbing.What was not verified
GROUP=Downstream(onlyplot_lines.jl).GROUP=QAasPkg.test(): Aqua passed; the run then died atusing PythonCallintest/qa/qa.jl:71(pixi/CondaPkgProcessExited(1)during PythonCall.C init). That is before ExplicitImports. Targeted ExplicitImports on the Makie extension passed.record/ interactive display. Converted-data assertions used Makie/CairoMakie without a GL backend.expand_dimensionsis used there; theis_sameoverride is gated onisdefined(Makie, :ComputePipeline)(0.24).Review notes
ComputePipeline.is_sameis not public Makie API. It is the 0.24 hook for "this value may have mutated / anisequalwrapper is not the same plot." Older Makie is skipped viaisdefined.empty!/plot!from the recipe.Please ignore this PR until it is reviewed by @ChrisRackauckas.
🤖 Generated with Grok Build TUI (model: grok-4.6)
Session: local
/home/crackauc/.grok/sessions/%2Fhome%2Fcrackauc%2Fsandbox%2Ftmp_20260907_062232_52914/01a07b3f-05bc-77d1-9346-1f1581b8129f