mirror of
https://github.com/ruvnet/RuView
synced 2026-06-24 12:43:18 +00:00
b3916386a3
Add comprehensive test suite (36 tests) for the ADR-013 commodity sensing module covering all components: RingBuffer, SimulatedCollector determinism, feature extraction (time-domain stats, FFT spectral analysis, band power isolation), CUSUM change-point detection, presence/motion classification, and end-to-end CommodityBackend pipeline. Fix feature_extractor.py: add missing _trim_to_window method that caused AttributeError on the WifiSample extraction path, add post-trim sample count guard, and handle constant-signal edge case in skewness/kurtosis computation to prevent scipy RuntimeWarning. https://claude.ai/code/session_01Ki7pvEZtJDvqJkmyn6B714