-
Notifications
You must be signed in to change notification settings - Fork 51
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
Provide name checking for NEST SetStatus #357
Comments
It sounds doable. However, it is possible to check only names which are defined in the neuronmodel und not names, which are theoretically adjustable through the fact the the generated neuron extend |
@DimitriPlotnikov But I think names inherited from Would it also be possible in NESTML to indicate legal value ranges for parameters and maybe even conditions, such as a < b required? |
|
@DimitriPlotnikov Why is the condition on |
The second one is constraint. It is an arbitrary boolean expression (just an example) |
I summarized points regarding invariants/constraints and created a new issue: #363. |
Users easily make spelling mistakes when specifying parameters for models in
SetStatus
calls. It is therefore important that NEST checks that all keys in the dictionary are valid names of parameters or state variables that can be set in a model or model instance.NEST currently does this by setting an "accessed" flag in the SLI dictionary token when a value is read out and then checks at the end whether all parameters have been read (had their "accessed" flag set). This has three disadvantages:
The main reason for the current solution is that NEST cannot introspect models to discover legal parameter names. NESTML on the other hand can know all legal names of modifiable quantities and could thus implement a direct check on dictionary keys, removing the need to maintain accessed flags.
I thus propose to implement such name checking as part of NESTML code generation.
The text was updated successfully, but these errors were encountered: