Skip to content

Commit

Permalink
Zach's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Nov 6, 2024
1 parent f900118 commit 2d843f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/preprocessing/decimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(
if parent_recording_segment.t_start is None:
t_start = None
else:
t_start = parent_recording_segment.t_start + decimation_offset / parent_rate
t_start = parent_recording_segment.t_start + (decimation_offset / parent_rate)

# Do not use BasePreprocessorSegment bcause we have to reset the sampling rate!
BaseRecordingSegment.__init__(
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/preprocessing/tests/test_decimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@pytest.mark.parametrize("num_segments", [1, 2])
@pytest.mark.parametrize("decimation_offset", [0, 5, 21, 101])
@pytest.mark.parametrize("decimation_offset", [0, 1, 5, 21, 101])
@pytest.mark.parametrize("decimation_factor", [1, 7, 50])
def test_decimate(num_segments, decimation_offset, decimation_factor):
segment_num_samps = [20000, 40000]
Expand Down

0 comments on commit 2d843f8

Please sign in to comment.