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.
1 parent f1a6b7d commit a436d27Copy full SHA for a436d27
data_exploration_gui/data_class.py
@@ -104,8 +104,8 @@ def compute_depth_and_amplitudes(self):
104
self.amps = []
105
self.nspikes = []
106
for clu in self.ids:
107
- self.depths = np.append(self.depths, np.mean(units_b.depths[str(clu)]))
108
- self.amps = np.append(self.amps, np.mean(units_b.amps[str(clu)]) * 1e6)
+ self.depths = np.append(self.depths, np.nanmean(units_b.depths[str(clu)]))
+ self.amps = np.append(self.amps, np.nanmean(units_b.amps[str(clu)]) * 1e6)
109
self.nspikes = np.append(self.nspikes, len(units_b.amps[str(clu)]))
110
111
np.save((self.gui_path + '/cluster_depths'), self.depths)
0 commit comments