Skip to content
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

Fixed bug in functionSubstitute #559

Merged
merged 1 commit into from
Nov 23, 2022
Merged

Conversation

neworderofjamie
Copy link
Contributor

If you made a mistake in a code string where you didn't close a bracket on a function substitution e.g.

"$(for_each_synapse, printf(\"%d,\", $(id_post))"

The functionSubstitute function previously got stuck in an infinite loop. This fixes that issue and adds a couple of unit tests.

@neworderofjamie neworderofjamie added this to the GeNN 4.9.0 milestone Nov 17, 2022
@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Base: 88.80% // Head: 88.80% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (542934b) compared to base (0312dc5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #559   +/-   ##
=======================================
  Coverage   88.80%   88.80%           
=======================================
  Files          76       76           
  Lines       12344    12345    +1     
=======================================
+ Hits        10962    10963    +1     
  Misses       1382     1382           
Impacted Files Coverage Δ
src/genn/genn/code_generator/codeGenUtils.cc 89.75% <100.00%> (+0.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@tnowotny tnowotny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we are going more and more into the parser rabbit hole but that was to be expected...

@neworderofjamie
Copy link
Contributor Author

Yeah, although these adhoc parsers will all be replaced with the parser once I integrate it which should be more maintainable

@neworderofjamie neworderofjamie merged commit f398e93 into master Nov 23, 2022
@neworderofjamie neworderofjamie deleted the function_substitute_fix branch November 23, 2022 12:55
@neworderofjamie neworderofjamie modified the milestones: GeNN 4.9.0, GeNN 4.8.1 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants