Skip to content

Commit

Permalink
fixed float index
Browse files Browse the repository at this point in the history
  • Loading branch information
janscience committed Oct 7, 2019
1 parent fe38c24 commit 677f231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thunderfish/eodanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def eod_recording_plot(data, samplerate, ax, width=0.1, unit=None, toffs=0.0,
kwargs: dict
Arguments passed on to the plot command for the recorded trace.
"""
widx2 = int(width*samplerate)/2
widx2 = int(width*samplerate/2)
i0 = len(data)//2 - widx2
i0 = (i0//widx2)*widx2
i1 = i0 + 2*widx2
Expand Down

0 comments on commit 677f231

Please sign in to comment.