[pitivi/1.0] Remove commented out Matplotlib code.



commit 34a7f71648d0e04fd2024b279488b2cbd42ec5dd
Author: Elliott Sales de Andrade <quantum analyst gmail com>
Date:   Sun Jun 17 02:13:31 2018 -0400

    Remove commented out Matplotlib code.

 pitivi/autoaligner.py | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/pitivi/autoaligner.py b/pitivi/autoaligner.py
index fdc57d1c..076cc375 100644
--- a/pitivi/autoaligner.py
+++ b/pitivi/autoaligner.py
@@ -250,8 +250,6 @@ def affinealign(reference, targets, max_drift=0.02):
         for i in range(2 * num_blocks):
             halfautocorr[:, i] /= numpy.sqrt(
                 numpy.sum(halfautocorr[:, i] ** 2))
-        # from matplotlib.pyplot import imshow,show
-        # imshow(halfautocorr,interpolation='nearest',aspect='auto');show()
         drift = _findslope(halfautocorr) / bspace
         del halfautocorr
 
@@ -271,16 +269,11 @@ def affinealign(reference, targets, max_drift=0.02):
                 xcorr_blocks[-shift:, i] = xcorr_blocks[:shift, i].copy()
                 xcorr_blocks[:-shift, i] = temp
 
-        # from matplotlib.pyplot import imshow,show
-        # imshow(xcorr_blocks,interpolation='nearest',aspect='auto');show()
-
         # xcorr is the drift-compensated cross-correlation
         xcorr = numpy.sum(xcorr_blocks, axis=1)
         del xcorr_blocks
 
         offset = numpy.argmax(xcorr)
-        # from matplotlib.pyplot import plot,show
-        # plot(xcorr);show()
         del xcorr
         if offset >= len(t):
             offset -= L2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]