def rereference(self):
        """Automatically highlight channels to use as reference, based on
        selected channels."""
        selectedItems = self.idx_l0.selectedItems()

        chan_to_plot = []
        for selected in selectedItems:
            chan_to_plot.append(selected.text())
        self.highlight_channels(self.idx_l1, chan_to_plot)
def rereference ( self ) : selectedItems = self . idx_l0 . selectedItems ( ) chan_to_plot = [ ] for selected in selectedItems : chan_to_plot . append ( selected . text ( ) ) self . highlight_channels ( self . idx_l1 , chan_to_plot )
Automatically highlight channels to use as reference, based on
        selected channels.