-
Notifications
You must be signed in to change notification settings - Fork 45
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
elif language construct is not working #949
Comments
@max-talanov are you referring to the
Please provide the example code where |
I have created the file to reproduce an error please see line 359: |
@max-talanov This was a typo in the function name and apparently, none of our tests caught it. Thank you for pointing this out. I have fixed this also in #950. |
@pnbabu thank you so much! |
Fixed in #950. |
Dear developers.
I'm trying to extend nest with muscle model.
Unfortunately I have hit the problem that if i use elif nestml language construct the compilation process crashes with the following error message:
File "/home/max/.local/lib/python3.10/site-packages/NESTML-5.3.0.post0.dev0-py3.10.egg/pynestml/cocos/co_co_user_defined_function_correctly_defined.py", line 67, in check_co_co
cls.__check_return_recursively(symbol.get_return_type(),
File "/home/max/.local/lib/python3.10/site-packages/NESTML-5.3.0.post0.dev0-py3.10.egg/pynestml/cocos/co_co_user_defined_function_correctly_defined.py", line 142, in __check_return_recursively
cls.__check_return_recursively(type_symbol, else_ifs.get_block().get_stmt(), ret_defined)
AttributeError: 'ASTBlock' object has no attribute 'get_stmt'. Did you mean: 'get_stmts'?
If I use nested ifs then compilation works fine.
Thank you so much in advance.
The text was updated successfully, but these errors were encountered: