From f0b9b24566fa0a77486ef649cac55c7fb0c410ac Mon Sep 17 00:00:00 2001 From: Konstantin Butenko Date: Thu, 22 Feb 2024 21:16:10 +0100 Subject: [PATCH] FIX: no offset for counter-pulse end --- ossdbs/stimulation_signals/rectangle_signal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ossdbs/stimulation_signals/rectangle_signal.py b/ossdbs/stimulation_signals/rectangle_signal.py index 8b8288ee..48c14d02 100644 --- a/ossdbs/stimulation_signals/rectangle_signal.py +++ b/ossdbs/stimulation_signals/rectangle_signal.py @@ -64,8 +64,7 @@ def get_time_domain_signal(self, dt: float, timesteps: int) -> np.ndarray: self._pulse_width / dt + self._inter_pulse_width / dt ) counter_pulse_end_idx = ( - offset - + counter_pulse_start_idx + counter_pulse_start_idx + int(self._counter_pulse_width / dt) ) signal[