Skip to content

Commit

Permalink
Merge pull request #1088 from LBHB/fixAmplitudeViewOtherSpikes
Browse files Browse the repository at this point in the history
Fix bug where selected clusters were being shown in the grey
  • Loading branch information
rossant authored Sep 7, 2021
2 parents 960facd + 268eab5 commit 28d6923
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phy/apps/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,9 @@ def _amplitude_getter(self, cluster_ids, name=None, load_all=False):
channel_id = channel_ids[0]
# All clusters appearing on the first cluster's peak channel.
other_clusters = self.get_clusters_on_channel(channel_id)
# Remove selected clusters from other_clusters to prevent them from being included
# in both the grey dots and grey histogram
other_clusters = [e for e in other_clusters if e not in cluster_ids]
# Get the amplitude method.
f = self._get_amplitude_functions()[name]
# Take spikes from the waveform selection if we're loading the raw amplitudes,
Expand Down

0 comments on commit 28d6923

Please sign in to comment.