This commit is contained in:
Scott Lawson 2017-01-05 00:13:39 -08:00
parent 32cea53ea1
commit 75d8e8d9f7

View File

@ -141,7 +141,7 @@ def visualize_spectrum(y):
global _prev_spectrum
y = np.copy(interpolate(y, config.N_PIXELS // 2))
common_mode.update(gaussian_filter1d(y, sigma=2.0))
diff = y - prev_spectrum
diff = y - _prev_spectrum
_prev_spectrum = np.copy(y)
r = gaussian_filter1d(y, sigma=0.5) - common_mode.value
# g = gaussian_filter1d(y, sigma=0.5) - common_mode.value