Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
buf fix since no second ROI with stim crosscorr
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed Aug 14, 2020
1 parent f8564ba commit 7711a8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mesmerize/plotting/widgets/cross_correlation/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ def add_second_roi_to_datapoint_tracer(self, r: pd.Series):
elif roi_state['roi_type'] == 'ManualROI':
self.roi_2 = ManualROI.from_state(curve_plot_item=None, view_box=self.datapoint_tracer.view, state=roi_state)

self.roi_2.get_roi_graphics_object().setPen(mkColor('c'))
self.roi_2.add_to_viewer()
if self.roi_2 is not None:
self.roi_2.get_roi_graphics_object().setPen(mkColor('c'))
self.roi_2.add_to_viewer()

def _get_xticks_linspace(self, ncc) -> np.ndarray:
m = ncc.size
Expand Down

0 comments on commit 7711a8d

Please sign in to comment.