Skip to content

Commit

Permalink
Update src/spikeinterface_pipelines/visualization/visualization.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Buccino <[email protected]>
  • Loading branch information
luiztauffer and alejoe91 authored Feb 6, 2024
1 parent 300e25f commit e77302e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def visualize(
alpha = recording_params["drift"]["alpha"]

# use spike locations
if waveform_extractor is not None and waveform_extractor.is_extension("spike_locations"):
if not waveform_extractor.has_extension("quality_metrics"):
logger.info("[Visualization] \tVisualizing drift maps using pre-computed spike locations")
peaks = waveform_extractor.sorting.to_spike_vector()
peak_locations = waveform_extractor.load_extension("spike_locations").get_data()
Expand Down

0 comments on commit e77302e

Please sign in to comment.