-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Downstream Updates from MTK v9 #2483
Comments
Also any downstream community packages I may have missed, please post here. I tried to weed out unmaintained projects and things that just look like archives of project code. @ctessum @cadojo @jake484 @hexaeder @jedforrest @TorkelE @isaacsas @TS-CUBED @wsphillips @baggepinnen @Vaibhavdixit02 @AlCap23 @sumiya11 @michakraus @RafaelArutjunjan @xiaomingfu2013 @bgctw @augustinas1 @voduchuy @JordiBolibar @facusapienza21 @sebapersson @iliailmer @orebas @mattar13 @killah-t-cell @nathanaelbosch @david-pl @paulflang @pogudingleb @YichengDWu @RXGottlieb @meyde @paulobruno @piluc @xtalax please see https://github.com/SciML/ModelingToolkit.jl/blob/master/NEWS.md and let me know if you have any questions. Some general updating notes:
Again if any of this is confusing and you need help upgrading, please feel free to ask questions, ask for help. We want help to get the whole ecosystem updated. (@AlCap23 you were going to move DynamicOED.jl into SciML? This would be a good time to do it) |
yes and yes
yes |
I was just making a note that I haven't gotten those CompatHelper PRs yet. We're definitely covering any non-archived SciML package! |
A more complete description of the parameter splitting if anyone needs help figuring out what it's all about: #2482 (comment) |
Thanks for this summary @ChrisRackauckas ! |
Thank you for the detailed information! I am trying to update I can see the word-level differences in the generated function string in git clone [email protected]:cadojo/AstrodynamicalModels.jl.git
cd AstrodynamicalModels.jl
git diff --no-index --word-diff=color v8/entry.jl v9/entry.jl |
@ChrisRackauckas |
My bad, found in the release notes |
It will be returning, we just need to redo it a bit on the new discrete-continuous infrastructure |
Ordering isn't guaranteed. In fact, parameters aren't even a vector so that doesn't make a lot of sense. See the discussion on parameter splitting for more details: #2482 (comment). But anything you were looking to do that needed a parameter ordering can and should be done by using the symbolic indexing interface: https://docs.sciml.ai/SymbolicIndexingInterface/stable/. For example, |
Does it mean that right now MTK does not have an interface for discrete-time systems? |
Are the EditMy goal is to use |
The best thing to support this for a general workflow would be for me to create a To be able to use this
If you need to create a parameter object, use |
Any functions inside |
Thank you @AayushSabharwal! Sounds good. To make sure I understand: the method signature for all I don't think I understand how / why |
Again, the first thing to do is to stop assuming that there is such a thing as an "ordering" since But also, see what I wrote above. If you use the standard setters and accessors https://docs.sciml.ai/SymbolicIndexingInterface/stable/ then you have everything that you need in order to use the
It probably should be considered internals now, that is a good point. We'd either need to make sure the This also fixes a few other buggy things because things which went around the problem construction have always made a few assumptions which don't quite hold true. But again, I think you get all of the functionality you need back via
What would be the difference from just using |
I think showing the generated code is a fine use case, especially to other targets. That one reason to keep it around as public API. We would need to expose the two parameter construction for the separate targets better in order to make this good though. I'm not sure the C code would work well for other parameter types at the moment, so we would need to make that error whenever we see any declared symtype. |
Yes, though I hope we can get around to getting something back next week. I think from other various discussions this has come up as a high priority. @AayushSabharwal let's discuss this and get something together. |
If you do decide to keep the function generation methods in the public API, I'd be interested in contributing to the One way I could see keeping the function generation capabilities is to unpack all of the parameters as individual arguments. For |
Yeah but we don't want to let people set the order 😅. The custom function would do something along the lines of |
As @ChrisRackauckas mentioned, there is no concept of an order for |
@ChrisRackauckas Is there an issue/PR I could subscribe to in order to know the status of this? |
Upgrade bug issues:
(None so far!)
Upgrade explanation issues:
The text was updated successfully, but these errors were encountered: