# HG changeset patch # User www-data # Date 1614719877 0 # Node ID ecdb95580c4e9cafb9f6ddfbee62bedc8ecb0a8b # Parent 5fd9b6b7ff0d513d1ddf928caf643edb8dcb47a9# Parent 9e143e277d5159a3cc89eef265393057c1d84529 Merge branch 'master' of https://github.com/amsehili/auditok diff -r 5fd9b6b7ff0d -r ecdb95580c4e auditok/signal.py --- a/auditok/signal.py Tue Mar 02 20:17:57 2021 +0000 +++ b/auditok/signal.py Tue Mar 02 21:17:57 2021 +0000 @@ -135,7 +135,7 @@ def calculate_energy_single_channel(data, sample_width): """Calculate the energy of mono audio data. Energy is computed as: - .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) # noqa: W605 + .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) % # noqa: W605 where `a_i` is the i-th audio sample and `N` is the number of audio samples in data. diff -r 5fd9b6b7ff0d -r ecdb95580c4e auditok/util.py --- a/auditok/util.py Tue Mar 02 20:17:57 2021 +0000 +++ b/auditok/util.py Tue Mar 02 21:17:57 2021 +0000 @@ -264,7 +264,7 @@ samples (see :func:`AudioEnergyValidator.is_valid`), the energy is computed as: - .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) # noqa: W605 + .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) % # noqa: W605 where `a_i` is the i-th audio sample.