Skip to content

Commit bb1c11e

Browse files
authored
Fix dtype on time_range
1 parent 8a59f70 commit bb1c11e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spikeinterface/widgets/traces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(
145145
fs = rec0.get_sampling_frequency()
146146
if time_range is None:
147147
time_range = (t_start, t_start + 1.0)
148-
time_range = np.array(time_range)
148+
time_range = np.array(time_range, dtype=np.float64)
149149
if time_range[1] > t_end:
150150
warnings.warn(
151151
"You have selected a time after the end of the segment. The range will be clipped to " f"{t_end}"

0 commit comments

Comments
 (0)