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

Removal of parameter indexing of problems #577

Closed
isaacsas opened this issue Dec 30, 2023 · 4 comments
Closed

Removal of parameter indexing of problems #577

isaacsas opened this issue Dec 30, 2023 · 4 comments

Comments

@isaacsas
Copy link
Member

If I understand:

error("Indexing with parameters is deprecated. Use `setp(prob, $sym)(prob, $val)` to set parameter value.")

indexing a problem with a parameter is no longer consider valid. Shouldn't this still be a deprecation warning though and not an error until a breaking release is made? This is a user-facing change in the problem interface.

For example, this no longer works due to this message:

using ModelingToolkit
@variables t V(t)
@parameters k
D = Differential(t)
eq = [D(V) ~ -k*V]
@named osys = ODESystem(eq, t)
oprob = ODEProblem(osys, [V => 1.0], (0.0, 10.0), [k => 1.0])
oprob[k]
@ChrisRackauckas
Copy link
Member

We had a breaking release on SymbolicIndexingInterface.jl. SciMLBase also just had one around the same time IIRC

@isaacsas
Copy link
Member Author

The last SciMLBase breaking release was 2.0 in September right? Didn't that predate all the SII work? A deprecation warning was only added there like 3 weeks ago if I am reading the history right, and was then removed a few days ago. That really isn't enough time for people to become aware of the change without signifying a breaking release by going to V3.0.

It isn't a big deal, but I think this has likely broke some of Torkel's examples in the Catalyst docs since he was using this indexing feature in places.

@ChrisRackauckas
Copy link
Member

The roll out of SII had started already at that time, it just took awhile to complete.

@isaacsas
Copy link
Member Author

Got it. I'll close this then.

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

2 participants