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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed Aug 10, 2020
1 parent f24d774 commit acf335a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mesmerize/plotting/widgets/cross_correlation/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def __init__(self):
self.control_widget.ui.doubleSpinBoxLagThreshold.valueChanged.connect(self.set_heatmap)
self.datapoint_tracer = DatapointTracerWidget()

self.stimulus_labels: List[str] = []

self.roi_2 = None

def set_heatmap(self):
Expand Down Expand Up @@ -97,7 +99,7 @@ def set_heatmap(self):
sub_df = self.transmission.df[self.transmission.df['SampleID'] == sample_id]

labels_col = self.control_widget.ui.comboBoxLabelsColumn.currentText()
ylabels = sub_df[labels_col]
ylabels = sub_df[labels_col].tolist() + self.stimulus_labels

# Since it's just same curve vs. same curves in the cc_matrix
xlabels = ylabels
Expand Down Expand Up @@ -267,8 +269,10 @@ def compute_dataframe(self):

if self.transmission.STIM_DEFS:
self.cc_data[sample_id].labels = np.concatenate([labels, stim_names]).astype(np.unicode)
self.stimulus_labels = stim_names
else:
self.cc_data[sample_id].labels = labels
self.stimulus_labels = []

self.set_current_sample()

Expand Down

0 comments on commit acf335a

Please sign in to comment.