From 39b9fff7da67a5af0fe4918403b06575559bcce8 Mon Sep 17 00:00:00 2001 From: Thorsten Hater <24411438+thorstenhater@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:28:01 +0100 Subject: [PATCH] Fix lower bound --- arbor/backends/event_stream_base.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arbor/backends/event_stream_base.hpp b/arbor/backends/event_stream_base.hpp index 36e98ed17..3373af9ab 100644 --- a/arbor/backends/event_stream_base.hpp +++ b/arbor/backends/event_stream_base.hpp @@ -114,7 +114,7 @@ struct spike_event_stream_base: event_stream_base { step = std::lower_bound(steps.begin() + step, steps.end(), evt.time, - [](const auto& bucket, time_type time) { return bucket.t_end() < time; }) + [](const auto& bucket, time_type time) { return bucket.t_end() <= time; }) - steps.begin(); // Events coinciding with epoch's upper boundary belong to next epoch if (step >= n_steps) break;