From 367561aef6fd221dd84e79e5984ab8539acf2200 Mon Sep 17 00:00:00 2001 From: Matt Dawkins Date: Tue, 27 Jan 2026 11:03:21 -0500 Subject: [PATCH] fix: add missing scipy.stats import in spectrogram module scipy.stats is used throughout the module (median_abs_deviation, skew, norm) but was never explicitly imported. Python does not auto-import submodules, so every call to scipy.stats would raise AttributeError. Co-Authored-By: Claude Opus 4.5 --- batbot/spectrogram/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/batbot/spectrogram/__init__.py b/batbot/spectrogram/__init__.py index f1fa0f4..d60485c 100644 --- a/batbot/spectrogram/__init__.py +++ b/batbot/spectrogram/__init__.py @@ -15,6 +15,7 @@ import numpy as np import pyastar2d import scipy.signal # Ensure this is at the top with other imports +import scipy.stats import tqdm from line_profiler import LineProfiler from scipy import ndimage