-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add better error messages for getter function which are not supported #200
Comments
yes, the current error message doesn't say too much and it can be improved, more explicitly ".. the state set and the input constraints must be specified for this type of system". On the other hand, i consider this only a temporary fix that we should be able to handle after #180, possibly filling such fields with |
Another approach would be to return |
I don't know in general, but for example the approach in ReachabilityAnalysis is: system = @system(x' = Ax) # user defines a system
# ... user associates this system with an initial-value problem and calls solve ...
# internally:
normalize(system) # returns a system with Universe as state constraints
discretize(..) ... reach(..) ... So whenever one hits a system whose stateset is not defined, |
for this issue, i think that improving the error message is fine. the code could be simplified using an interface (or traits) but there is no much done about that yet in this library. |
A
I prefer this behavior. Receiving |
It's a small thing but consider an unconstrained system
and try to access a nonexisting field, the error message could be improved.
For example we could return:
The text was updated successfully, but these errors were encountered: