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
Accessing and referring to ODESystem
states
#1049
Comments
Yeah I see this come up a few times. I think self-namespacing needs to be equality. @YingboMa ? |
|
I got bit by this too. As I understand it, SymbolicUtils overloads
|
Using triple-equal certainty won't work, and the results are expected. To check equality of symbolic variables, I'll close this because this not a software problem. It does what it is designed to do. If you want |
Part of the reason for this issue is that it can be quite difficult to work with ModelingToolkit. The whole namespace thing is counter intuitive and the documentation does not really help. There might very well be another way of doing what we want, but how to figure this out? If issues like these were taken seriously I bet MTK would have a lot more happy users and contributors. |
I don't quite want to document this yet because I think behavior of composition and inheritance is going to change. I am also not very happy with the current design. |
Oki, since you are considering redesigning it, I can share what I feel is the biggest problem with the current design from a user perspective: the behavior is counter intuitive. A user with Julia experience has a certain feeling for how objects behave, when they are equal and so on. This issue was opened because of such an instance where the user's expectation is that |
I opened another issue that elaborated on what's the current behavior and why |
@baggepinnen could you make an issue collecting all the parts of MTK that you think are poorly documented? Or is it mostly just how composition and inheritance work. I think spending too much time on the code makes me fail to see what's not obvious. |
After reading through this and related issues, I now understand that |
We're going to fix this, which is the point of #1052 . |
I'm struggling to wrap my head around the states of
ODESystem
, below, I have a system with a state calledu
, which I can access like a property, but at the same time, this state is not instates(P)
.I suspect this is another case of the namespacing making things difficult to understand, as I have
This issue might just be a documentation issue, I can't really find out how to think about the namespacing properly, I'm constantly baffled by how it behaves.
The text was updated successfully, but these errors were encountered: