Fix STDP k-value error for edge case#2661
Conversation
|
Can we amend the unit test so it fails on the old code, but passes on the new code? |
|
I improved the test to correctly detect the original error correctly, tested some more parameter combinations and fixed some bugs in the test which occurred for that parameters. Additionally, I added a test for the |
|
Strange, NEST aborts, but why? How can I debug this issue when it doesn't occur locally? |
Do you have the same setup locally (Python version etc) as on the CI runner? And have you tried to run the test locally as the test runner would do it, i.e., with |
|
Pull request automatically marked stale! |
|
@JanVogelsang : could you pull master and fix the merge conflicts? There is also one "TODO" marked in the code, could you re-enable plotting? Cheers! |
|
Sure thing! I removed some warnings while I was at it, and don't get any errors or warning locally when I run pytest the same way the CI runner does (although with a higher Python version, I use 3.11). |
clinssen
left a comment
There was a problem hiding this comment.
Could it be that some unrelated changes were pulled in in connector_base.h and event_delivery_manager.cpp (and some other kernel files)?
|
You are right, those were actually incorrectly added. |
|
@abigailm Can you review this PR? |
|
@abigailm Now that you are back from vacation, can you review this? |
|
All looks fine to me |
PR #2443 contained a bug in the fix, this PR hotfixes the bugfix.
Adding
max_delay_ + kernel().connection_manager.get_min_delay()looked correct, but was actually addingdouble + long, i.e.,ms + delay.It had to be
max_delay_ + Time::delay_steps_to_ms( kernel().connection_manager.get_min_delay() )instead.