From 16fabdc89522c8b703915d9eed528b59f924322e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Tue, 9 Jan 2024 10:40:45 +0000 Subject: [PATCH] removed duplicate detranding of the spectrogram --- K-ShakeTune/scripts/common_func.py | 1 - 1 file changed, 1 deletion(-) diff --git a/K-ShakeTune/scripts/common_func.py b/K-ShakeTune/scripts/common_func.py index 8900e87..7c74109 100644 --- a/K-ShakeTune/scripts/common_func.py +++ b/K-ShakeTune/scripts/common_func.py @@ -61,7 +61,6 @@ def compute_spectrogram(data): window = np.kaiser(M, 6.) def _specgram(x): - x -= np.mean(x) # Detrending by subtracting the mean value return spectrogram(x, fs=Fs, window=window, nperseg=M, noverlap=M//2, detrend='constant', scaling='density', mode='psd')