Skip to content

Conversation

@ChrisRackauckas
Copy link
Member

This commit fixes several deprecation warnings related to AbstractDiffEqArray indexing by replacing deprecated patterns with the new recommended syntax:

  • Replace sol[:] with sol.u
  • Replace sol[i] with sol.u[i]
  • Replace sol[1,:] with [u[1] for u in sol.u]

These changes eliminate deprecation warnings during test runs while maintaining the same functionality. The changes affect test files only and do not impact the core library functionality.

Files modified:

  • test/cache_test.jl: Fixed sol[:] usage in plotting code
  • test/tau_leaping.jl: Fixed multiple sol[i][end,end] indexing patterns
  • test/split_tests.jl: Fixed sol[:] comparison
  • test/events_test.jl: Fixed sol[1,:] indexing pattern

🤖 Generated with Claude Code

This commit fixes several deprecation warnings related to AbstractDiffEqArray
indexing by replacing deprecated patterns with the new recommended syntax:

- Replace `sol[:]` with `sol.u`
- Replace `sol[i]` with `sol.u[i]`
- Replace `sol[1,:]` with `[u[1] for u in sol.u]`

These changes eliminate deprecation warnings during test runs while maintaining
the same functionality. The changes affect test files only and do not impact
the core library functionality.

Files modified:
- test/cache_test.jl: Fixed `sol[:]` usage in plotting code
- test/tau_leaping.jl: Fixed multiple `sol[i][end,end]` indexing patterns
- test/split_tests.jl: Fixed `sol[:]` comparison
- test/events_test.jl: Fixed `sol[1,:]` indexing pattern

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit d764f01 into master Jul 31, 2025
33 of 39 checks passed
@ChrisRackauckas ChrisRackauckas deleted the fix-deprecation-warnings branch July 31, 2025 07:57
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