Skip to content

Use another augmented assignment statement#99

Description

@elfring

馃憖 Some source code analysis tools can help to find opportunities for improving software components.
馃挱 I propose to increase the usage of augmented assignment statements accordingly.

diff --git a/python_speech_features/sigproc.py b/python_speech_features/sigproc.py
index a786c4f..b8729ea 100644
--- a/python_speech_features/sigproc.py
+++ b/python_speech_features/sigproc.py
@@ -84,7 +84,7 @@ def deframesig(frames, siglen, frame_len, frame_step, winfunc=lambda x: numpy.on
                                                indices[i, :]] + win + 1e-15  # add a little bit so it is never zero
         rec_signal[indices[i, :]] = rec_signal[indices[i, :]] + frames[i, :]
 
-    rec_signal = rec_signal / window_correction
+    rec_signal /= window_correction
     return rec_signal[0:siglen]
 
 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions