We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b3436f + 23679e3 commit 0ea9ff5Copy full SHA for 0ea9ff5
spikeinterface_gui/spikerateview.py
@@ -71,7 +71,7 @@ def _qt_refresh(self):
71
total_frames = self.controller.final_spike_samples
72
bins_s = self.settings['bin_s']
73
t_start, _ = self.controller.get_t_start_t_stop()
74
- num_bins = total_frames[segment_index] // int(sampling_frequency) // bins_s
+ num_bins = max(total_frames[segment_index] // int(sampling_frequency) // bins_s, 1)
75
76
for r, unit_id in enumerate(visible_unit_ids):
77
0 commit comments