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 b3922fc commit a392e57Copy full SHA for a392e57
element_array_ephys/readers/kilosort.py
@@ -143,7 +143,8 @@ def extract_spike_depths(self):
143
# center of mass is sum(coords.*features)/sum(features)
144
self._data['spike_depths'] = (np.sum(spk_feature_ycoord * pc_features**2, axis=1)
145
/ np.sum(pc_features**2, axis=1))
146
-
+else:
147
+ self._data['spike_depths'] = None
148
# ---- extract spike sites ----
149
max_site_ind = np.argmax(np.abs(self.data['templates']).max(axis=1), axis=1)
150
spike_site_ind = max_site_ind[self.data['spike_templates']]
0 commit comments