recv: remove saturation detection

This commit is contained in:
Roman Zeyde
2014-12-31 11:03:36 +02:00
parent c38208e10b
commit 477013fcdd
4 changed files with 1 additions and 27 deletions

View File

@@ -5,17 +5,6 @@ import logging
log = logging.getLogger(__name__)
scaling = 32000.0 # out of 2**15
SATURATION_THRESHOLD = (2**15 - 1) / scaling
class SaturationError(ValueError):
pass
def check_saturation(x):
peak = np.max(np.abs(x))
if peak >= SATURATION_THRESHOLD:
raise SaturationError(peak)
def load(fileobj):