From 5690ae56bde1eac0858fef2dd506a433c45eea1c Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Wed, 29 May 2024 15:17:13 +0100 Subject: [PATCH] one more has_scaled->has_scaleable_traces --- src/spikeinterface/preprocessing/detect_bad_channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/preprocessing/detect_bad_channels.py b/src/spikeinterface/preprocessing/detect_bad_channels.py index 1fdd7737d0..e2e4f46c54 100644 --- a/src/spikeinterface/preprocessing/detect_bad_channels.py +++ b/src/spikeinterface/preprocessing/detect_bad_channels.py @@ -165,7 +165,7 @@ def detect_bad_channels( elif method == "coherence+psd": # some checks - assert recording.has_scaled(), ( + assert recording.has_scaleable_traces(), ( "The 'coherence+psd' method uses thresholds assuming the traces are in uV, " "but the recording does not have scaled traces. If the recording is already scaled, " "you need to set gains and offsets: "