python/demos/demo_yin_compare.py: fix indentation
authorPaul Brossier <piem@piem.org>
Mon, 24 Jul 2017 13:16:22 +0000 (15:16 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 24 Jul 2017 13:16:22 +0000 (15:16 +0200)
python/demos/demo_yin_compare.py

index 92dc015..6842368 100755 (executable)
@@ -25,8 +25,8 @@ def sqd_yin(samples):
     W = B//2
     yin = np.zeros(W)
     for j in range(W):
-      for tau in range(1, W):
-        yin[tau] += (samples[j] - samples[j+tau])**2
+        for tau in range(1, W):
+            yin[tau] += (samples[j] - samples[j+tau])**2
     return yin
 
 def sqd_yinfast(samples):