@@ -39,7 +39,7 @@ def __init__(self, controller=None, parent=None, backend="qt"):
3939 self .selected_comp = np .ones ((ndim ), dtype = 'bool' )
4040 self .projection = self .get_one_random_projection ()
4141
42- #estimate limts
42+ #estimate limits
4343 data = self .data
4444 if data .shape [0 ] > 1000 :
4545 inds = np .random .choice (data .shape [0 ], 1000 , replace = False )
@@ -281,7 +281,7 @@ def _qt_refresh(self, update_components=True, update_colors=True):
281281 self .update_selected_components ()
282282
283283 #ndscatter
284- # TODO sam: I have the feeling taht it is a bit slow
284+ # TODO sam: I have the feeling that it is a bit slow
285285 self .scatter .clear ()
286286
287287 # scatter_x, scatter_y, spike_indices, selected_scatter_x, selected_scatter_y = self.get_plotting_data(concatenated=True)
@@ -298,7 +298,7 @@ def _qt_refresh(self, update_components=True, update_colors=True):
298298 self .scatter_select .setData (selected_scatter_x , selected_scatter_y )
299299
300300
301- # TODO sam : kepp the old implementation in mind
301+ # TODO sam : keep the old implementation in mind
302302 # for unit_index, unit_id in enumerate(self.controller.unit_ids):
303303 # if not self.controller.get_unit_visibility(unit_id):
304304 # continue
@@ -368,7 +368,7 @@ def _qt_on_lasso_finished(self, points, shift_held=False):
368368 vertices = np .array (points )
369369 self ._lasso_vertices .append (vertices )
370370
371- # inside lasso and visibles
371+ # inside lasso and visible
372372 ind_visibles , = np .nonzero (np .isin (self .random_spikes_indices , self .controller .get_indices_spike_visible ()))
373373 projected = self .apply_dot (self .data [ind_visibles , :])
374374 inside = inside_poly (projected , vertices )
@@ -569,7 +569,7 @@ def _on_panel_selection_geometry(self, event):
569569 else :
570570 self ._lasso_vertices = [polygon ]
571571
572- # inside lasso and visibles
572+ # inside lasso and visible
573573 ind_visibles , = np .nonzero (np .isin (self .random_spikes_indices , self .controller .get_indices_spike_visible ()))
574574 inds = self .random_spikes_indices [ind_visibles [selected ]]
575575 self .controller .set_indices_spike_selected (inds )
0 commit comments