Test tweaks and linting
[EVA-2020-02-2.git] / library / enviroplus / noise.py
index 2e7472d1ea8120eec7739efeee989d358d7e728f..6830bd0dd7dc0ca04e5eb7e28ef4a8dcfc1f6d9f 100644 (file)
@@ -73,7 +73,7 @@ class Noise():
         high_start = mid_start + int(sample_count * mid)
         noise_ceiling = high_start + int(sample_count * high)
 
         high_start = mid_start + int(sample_count * mid)
         noise_ceiling = high_start + int(sample_count * high)
 
-        amp_low = numpy.mean(magnitude[self.noise_floor:mid_start])
+        amp_low = numpy.mean(magnitude[noise_floor:mid_start])
         amp_mid = numpy.mean(magnitude[mid_start:high_start])
         amp_high = numpy.mean(magnitude[high_start:noise_ceiling])
         amp_total = (low + mid + high) / 3.0
         amp_mid = numpy.mean(magnitude[mid_start:high_start])
         amp_high = numpy.mean(magnitude[high_start:noise_ceiling])
         amp_total = (low + mid + high) / 3.0