Skip to content

Commit

Permalink
forcing binsize to be at least 1 (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed May 1, 2021
1 parent 2c060bd commit e82396e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite2p/gui/gui2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def mode_change(self, i):
self.activityMode = i
if self.loaded:
# activity used for correlations
self.bin = int(self.binedit.text())
self.bin = max(1, int(self.binedit.text()))
nb = int(np.floor(float(self.Fcell.shape[1]) / float(self.bin)))
if i == 0:
f = self.Fcell
Expand Down

0 comments on commit e82396e

Please sign in to comment.