@@ -143,23 +143,16 @@ def _qt_seek(self, t):
143143 self .scroll_time .setPageStep (int (sr * xsize ))
144144 self .scroll_time .valueChanged .connect (self ._qt_on_scroll_time )
145145
146- < << << << HEAD
147146 segment_index = self .controller .get_time ()[1 ]
148- times_chunk , data_curves , scatter_x , scatter_y , scatter_colors , scatter_unit_ids = \
147+ times_chunk , data_curves , scatter_x , scatter_y , scatter_colors = \
149148 self .get_data_in_chunk (t1 , t2 , segment_index )
149+ data_curves = data_curves .T
150150
151151 if times_chunk .size == 0 :
152152 self .image .hide ()
153153 self .scatter .clear ()
154154 return
155-
156- == == == =
157- seg_index = self .controller .get_time ()[1 ]
158- times_chunk , data_curves , scatter_x , scatter_y , scatter_colors = \
159- self .get_data_in_chunk (t1 , t2 , seg_index )
160- data_curves = data_curves .T
161155
162- > >> >> >> 4 d644768f573b50e1ce051e7bc234fc21bc5ab93
163156 if self .color_limit is None :
164157 self .color_limit = np .max (np .abs (data_curves ))
165158
@@ -283,14 +276,9 @@ def _panel_refresh(self):
283276 else :
284277 auto_scale = False
285278
286- < << << << HEAD
287- times_chunk , data_curves , scatter_x , scatter_y , scatter_colors , scatter_unit_ids = \
288- self .get_data_in_chunk (t1 , t2 , segment_index )
289- == == == =
290279 times_chunk , data_curves , scatter_x , scatter_y , scatter_colors = \
291280 self .get_data_in_chunk (t1 , t2 , seg_index )
292281 data_curves = data_curves .T
293- >> >> >> > 4 d644768f573b50e1ce051e7bc234fc21bc5ab93
294282
295283 if self .color_limit is None :
296284 self .color_limit = np .max (np .abs (data_curves ))
@@ -320,13 +308,8 @@ def _panel_refresh(self):
320308
321309 # TODO: if from a different unit, change unit visibility
322310 def _panel_on_tap (self , event ):
323- < << << << HEAD
324- segment_index = self .controller .get_time ()[1 ]
325- ind_spike_nearest = self .find_nearest_spike (self .controller , event .x , segment_index )
326- == == == =
327311 seg_index = self .controller .get_time ()[1 ]
328312 ind_spike_nearest = find_nearest_spike (self .controller , event .x , seg_index )
329- >> >> >> > 4 d644768f573b50e1ce051e7bc234fc21bc5ab93
330313 if ind_spike_nearest is not None :
331314 self .controller .set_indices_spike_selected ([ind_spike_nearest ])
332315 self ._panel_seek_with_selected_spike ()
0 commit comments