Skip to content

Conversation

@mattdawkins
Copy link
Member

Summary

  • Add import scipy.stats to batbot/spectrogram/__init__.py
  • The module uses scipy.stats.median_abs_deviation, scipy.stats.skew, and scipy.stats.norm across ~9 call sites but never imports the submodule
  • Python does not auto-import submodules, so every call raises AttributeError: module 'scipy' has no attribute 'stats'

Test plan

  • Run pytest and verify spectrogram tests pass without AttributeError

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant