Skip to content

Commit 2d843f8

Browse files
committed
Zach's comments
1 parent f900118 commit 2d843f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/spikeinterface/preprocessing/decimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __init__(
105105
if parent_recording_segment.t_start is None:
106106
t_start = None
107107
else:
108-
t_start = parent_recording_segment.t_start + decimation_offset / parent_rate
108+
t_start = parent_recording_segment.t_start + (decimation_offset / parent_rate)
109109

110110
# Do not use BasePreprocessorSegment bcause we have to reset the sampling rate!
111111
BaseRecordingSegment.__init__(

src/spikeinterface/preprocessing/tests/test_decimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
@pytest.mark.parametrize("num_segments", [1, 2])
12-
@pytest.mark.parametrize("decimation_offset", [0, 5, 21, 101])
12+
@pytest.mark.parametrize("decimation_offset", [0, 1, 5, 21, 101])
1313
@pytest.mark.parametrize("decimation_factor", [1, 7, 50])
1414
def test_decimate(num_segments, decimation_offset, decimation_factor):
1515
segment_num_samps = [20000, 40000]

0 commit comments

Comments
 (0)