Skip to content

Commit cd6dc9d

Browse files
committed
Update time step so it's casted to be an int. Fixes #1179.
1 parent 3472ced commit cd6dc9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suite2p/gui/reggui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def setup_views(self):
563563
self.vside.setAspectLocked(lock=True, ratio=self.xyrat)
564564

565565
self.nframes = ops["nframes"]
566-
self.time_step = 1. / ops["fs"] * 1000 / 5 # 5x real-time
566+
self.time_step = int(1. / ops["fs"] * 1000 / 5) # 5x real-time (make sure it's casted)
567567
self.frameDelta = int(np.maximum(5, self.nframes / 200))
568568
self.frameSlider.setSingleStep(self.frameDelta)
569569
self.currentMovieDirectory = QtCore.QFileInfo(self.filename).path()

0 commit comments

Comments
 (0)