original_docstring:  Transform the global idx to the view idx:
                  Listen the select event from other view, and find the intersect spikes in current clus which selected to display within amplitude view. 
          
docstring: Transform the global idx to the view idx:
  Listen the select event from other view, and find the intersect spikes in current clus which selected to display within amplitude view.
docstring_tokens: Transform the global idx to the view idx : Listen the select event from other view and find the intersect spikes in current clus which selected to display within amplitude view .
code: def highlight(self, global_idx):
          ''' Transform the global idx to the view idx:
                  Listen the select event from other view, and find the intersect spikes in current clus which selected to display within amplitude view. 
          '''
          # find the intersect cluster between other view and amplitude view
          local_idx = self._clu.global2local(global_idx)
          current_clus = self._clu.select_clus
          common_clus = np.intersect1d(current_clus, np.array(local_idx.keys()))
          
          # the spike idx in parent-class is |cluster1|cluster2|cluster3|....|,
          # so the local idx in cluster2 is need to plus len(cluster1)
          view_idx = np.array([],dtype='int64')
          if len(common_clus) > 0:
              for clu in common_clus:
                  before = current_clus[np.where(current_clus < clu)]
                  for b in before:
                      local_idx[clu] += self._clu.index_count[b]
                  view_idx = np.hstack((view_idx, local_idx[clu]))
          
          super(raster_view, self)._highlight(view_idx)
code_tokens: def highlight ( self , global_idx ) : local_idx = self . _clu . global2local ( global_idx ) current_clus = self . _clu . select_clus common_clus = np . intersect1d ( current_clus , np . array ( local_idx . keys ( ) ) ) view_idx = np . array ( [ ] , dtype = 'int64' ) if len ( common_clus ) > 0 : for clu in common_clus : before = current_clus [ np . where ( current_clus < clu ) ] for b in before : local_idx [ clu ] += self . _clu . index_count [ b ] view_idx = np . hstack ( ( view_idx , local_idx [ clu ] ) ) super ( raster_view , self ) . _highlight ( view_idx )
short_docstring: Transform the global idx to the view idx:
  Listen the select event from other view, and find the intersect spikes in current clus which selected to display within amplitude view.
short_docstring_tokens: Transform the global idx to the view idx : Listen the select event from other view and find the intersect spikes in current clus which selected to display within amplitude view .
comment: ''' Transform the global idx to the view idx:
                  Listen the select event from other view, and find the intersect spikes in current clus which selected to display within amplitude view. 
          '''$SEP$# find the intersect cluster between other view and amplitude view
  $SEP$# the spike idx in parent-class is |cluster1|cluster2|cluster3|....|,
  $SEP$# so the local idx in cluster2 is need to plus len(cluster1)
  