[Deprecation warnings] use `Base.getindex(A, :, i)` instead. & Change `A[i]` to `A.u[i]`
prbzrg opened this issue · 5 comments
prbzrg commented
By new versions, I am getting:
┌ Warning: `Base.getindex(A::AbstractDiffEqArray, i::Int)` is deprecated, use `Base.getindex(A, :, i)` instead.
for
└ @ SciMLSensitivity C:\Users\Hossein Pourbozorg\.julia\packages\SciMLSensitivity\4Ah3r\src\sensitivity_interface.jl:432
└ @ SciMLSensitivity C:\Users\Hossein Pourbozorg\.julia\packages\SciMLSensitivity\4Ah3r\src\concrete_solve.jl:441
└ @ SciMLSensitivity C:\Users\Hossein Pourbozorg\.julia\packages\SciMLSensitivity\4Ah3r\src\sensitivity_interface.jl:438
└ @ SciMLSensitivity C:\Users\Hossein Pourbozorg\.julia\packages\SciMLSensitivity\4Ah3r\src\sensitivity_interface.jl:440
and
┌ Warning: Linear indexing of `AbstractVectorOfArray` is deprecated. Change `A[i]` to `A.u[i]`
for
└ @ SciMLSensitivity C:\Users\Hossein Pourbozorg\.julia\packages\SciMLSensitivity\4Ah3r\src\sensitivity_interface.jl:438
└ @ SciMLSensitivity C:\Users\Hossein Pourbozorg\.julia\packages\SciMLSensitivity\4Ah3r\src\sensitivity_interface.jl:440
prbzrg commented
There are some others too in the CI.
ChrisRackauckas commented
Yes, there's a lot of updates to do for RAT v3
matthewelmer-tamu commented
As a user that is getting this warning, how do I make it go away?
ChrisRackauckas commented
Set depwarns to error, i.e. julia --depwarn=no
, and then change the spot where it errors to sol.u[i]
instead of sol[i]
.