From 0732e2c0677be45ec13003207549ee620f503b44 Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 21 Mar 2019 15:36:29 +0000 Subject: [PATCH] Remove unneeded assert --- audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio.py b/audio.py index ad5d37a..ea3f7f9 100644 --- a/audio.py +++ b/audio.py @@ -16,7 +16,8 @@ class Audio: self.cycles_per_tick = 73 # type: int # TODO: round to divisor of video frame rate - self.sample_rate = 14340 # int(1024. * 1024 / self.cycles_per_tick) + self.sample_rate = 14340 # int(1024. * 1024 / + # self.cycles_per_tick) self.normalization = ( normalization or self._normalization()) # type: float @@ -45,7 +46,6 @@ class Audio: break a = self._decode(f, raw) norm = np.max(np.abs(np.percentile(a, [2.5, 97.5]))) - assert norm return 16384. / norm