Skip to content

Fix deprecation warnings#102

Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:fix-deprecation-warnings-20260208
Feb 8, 2026
Merged

Fix deprecation warnings#102
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:fix-deprecation-warnings-20260208

Conversation

@ChrisRackauckas-Claude
Copy link
Contributor

Summary

  • Replace deprecated integer indexing on solution objects (sol[i], sol[end]) with the new API (sol.u[i], sol.u[end]) in test files
  • Base.getindex(VA::AbstractDiffEqArray, i::Int) is deprecated in RecursiveArrayTools in favor of direct .u field access

Changes

  • test/discrete_tests.jl: 4 occurrences of sol[i]/sol[end]sol.u[i]/sol.u[end]
  • test/gpusimpleatsit5_tests.jl: 1 occurrence of sol[20]/sol2[20]sol.u[20]/sol2.u[20]

Test plan

  • All tests pass with JULIA_DEPWARN=error (no deprecation warnings remain)
  • Full test suite passes via Pkg.test()

🤖 Generated with Claude Code

Replace deprecated integer indexing on solution objects (sol[i], sol[end])
with the new API (sol.u[i], sol.u[end]) in test files. The old
`Base.getindex(VA::AbstractDiffEqArray, i::Int)` is deprecated in
RecursiveArrayTools in favor of direct `.u` field access.

Affected files:
- test/discrete_tests.jl: 4 occurrences
- test/gpusimpleatsit5_tests.jl: 1 occurrence

All tests pass with JULIA_DEPWARN=error after this change.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 3d14d83 into SciML:master Feb 8, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants