Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyNN/common/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run_until(time_point, callbacks=None):
if callbacks:
callback_events = [(callback(simulator.state.t), callback)
for callback in callbacks]
while simulator.state.t + 1e-9 < time_point:
while simulator.state.t + 1e-9 < time_point - simulator.state.dt:
callback_events.sort(key=lambda cbe: cbe[0], reverse=True)
next, callback = callback_events.pop()
# collapse multiple events that happen within the same timestep
Expand Down