diff --git a/src/soundevent/audio/spectrograms.py b/src/soundevent/audio/spectrograms.py index 77667b0..8a262a0 100644 --- a/src/soundevent/audio/spectrograms.py +++ b/src/soundevent/audio/spectrograms.py @@ -49,6 +49,7 @@ def compute_spectrogram( nperseg=nperseg, noverlap=noverlap, axis=0, + mode="magnitude" ) # Convert to xarray