Fix RaggedEnd in range and returning DiffEqArray#527
Merged
ChrisRackauckas merged 5 commits intoSciML:masterfrom Jan 21, 2026
Merged
Fix RaggedEnd in range and returning DiffEqArray#527ChrisRackauckas merged 5 commits intoSciML:masterfrom
RaggedEnd in range and returning DiffEqArray#527ChrisRackauckas merged 5 commits intoSciML:masterfrom
Conversation
| function Base.:(:)(start::RaggedEnd, stop::RaggedEnd) | ||
| return RaggedRange(stop.dim, start.offset, 1, stop.offset) | ||
| end | ||
| function Base.:(:)(start::RaggedEnd, step::Integer, stop::RaggedEnd) |
Member
There was a problem hiding this comment.
You're missing start with raggedend and stop with integer?
Contributor
Author
There was a problem hiding this comment.
Oh, right. That's also possible. I'll add that in a minute.
Contributor
Author
There was a problem hiding this comment.
Should be fixed. Thanks for catching that!
JoshuaLampert
commented
Jan 20, 2026
| @test diffeq.u == recs | ||
| @test diffeq[:, end] == testa[:, end] | ||
| @test diffeq[:, 2:end] == DiffEqArray([recs[i] for i in 2:length(recs)], t) | ||
| @test diffeq[:, 2:end] == DiffEqArray([recs[i] for i in 2:length(recs)], t[2:end]) |
Contributor
Author
There was a problem hiding this comment.
This was actually pretty confusing because in the previous test t of the left hand side is not the same as the t on the right hand side, but it is not caught because of
RecursiveArrayTools.jl/src/vector_of_array.jl
Line 1048 in 6519ecf
ChrisRackauckas
approved these changes
Jan 20, 2026
Contributor
Author
|
Can this be merged, @ChrisRackauckas? |
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.
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
This fixes two issues:
endfails (noticed by @iago-lito on Zulip):on master:
This PR:
DiffEqArraywith a range returned aVectorOfArrayinstead of aDiffEqArray:on master:
This PR: