Skip to content

Commit a392e57

Browse files
kabilarThinh Nguyen
andauthored
Update element_array_ephys/readers/kilosort.py
Co-authored-by: Thinh Nguyen <thinh@vathes.com>
1 parent b3922fc commit a392e57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

element_array_ephys/readers/kilosort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def extract_spike_depths(self):
143143
# center of mass is sum(coords.*features)/sum(features)
144144
self._data['spike_depths'] = (np.sum(spk_feature_ycoord * pc_features**2, axis=1)
145145
/ np.sum(pc_features**2, axis=1))
146-
146+
else:
147+
self._data['spike_depths'] = None
147148
# ---- extract spike sites ----
148149
max_site_ind = np.argmax(np.abs(self.data['templates']).max(axis=1), axis=1)
149150
spike_site_ind = max_site_ind[self.data['spike_templates']]

0 commit comments

Comments
 (0)