Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deprecation warnings] use Base.getindex(A, :, i) instead. & Change A[i] to A.u[i] #960

Closed
prbzrg opened this issue Dec 22, 2023 · 5 comments

Comments

@prbzrg
Copy link
Member

prbzrg commented Dec 22, 2023

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 prbzrg changed the title Deprecation warnings: *use Base.getindex(A, :, i) instead.* & *Change A[i] to A.u[i]* [Deprecation warnings] use Base.getindex(A, :, i) instead. & Change A[i] to A.u[i] Dec 22, 2023
@prbzrg
Copy link
Member Author

prbzrg commented Dec 22, 2023

There are some others too in the CI.

@ChrisRackauckas
Copy link
Member

Yes, there's a lot of updates to do for RAT v3

@matthewelmer-tamu
Copy link

As a user that is getting this warning, how do I make it go away?

@ChrisRackauckas
Copy link
Member

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].

@prbzrg
Copy link
Member Author

prbzrg commented Sep 2, 2024

Should we close this?

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

No branches or pull requests

3 participants