Repository navigation
Fix method ambiguity between PDETimeSeriesSolution and AbstractDiffEqArray - #1307
Merged
ChrisRackauckas merged 1 commit intoApr 1, 2026
Merged
Conversation
…Array
Add disambiguating method for PDETimeSeriesSolution(t, ::Type{deriv})
to resolve ambiguity with RecursiveArrayTools.AbstractDiffEqArray's
callable method introduced in RAT v4.
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ChrisRackauckas
added a commit
to ChrisRackauckas-Claude/SciMLBase.jl
that referenced
this pull request
Nov 14, 2026
Brings in the PDETimeSeriesSolution/AbstractDiffEqArray ambiguity fix (SciML#1307) that the QA group needs. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-opus-5-5 Agent-Session: local fixer job SciML__SciMLBase.jl__1305 (no session URL)
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
(::PDETimeSeriesSolution)(t, ::Type{deriv}; idxs, continuity)to resolve method ambiguity withRecursiveArrayTools.AbstractDiffEqArray's callable introduced in RAT v4Details
PDETimeSeriesSolution <: AbstractPDETimeSeriesSolution <: AbstractTimeseriesSolution <: AbstractDiffEqArray. RAT v4 added a callable(da::AbstractDiffEqArray)(t, ::Type{deriv}; idxs, continuity)whilePDETimeSeriesSolutionhas a catch-all(sol::PDETimeSeriesSolution)(args...; kwargs...). Julia cannot determine which method to call forsol(t, SomeType)since neither is more specific on all axes.The fix adds an explicit method matching the RAT signature on
PDETimeSeriesSolution, which preserves the existing error behavior (these methods are meant to be overridden by discretizer packages).Test plan
Aqua.detect_ambiguities(SciMLBase)returns 0 ambiguities🤖 Generated with Claude Code