[python-dtcwt] 04/17: Use explicit integer division. Closes #123

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 9 11:28:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-dtcwt.

commit cf9664c4339eaacf7229025642d315f316e7c670
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Mar 8 13:32:52 2016 +0000

    Use explicit integer division. Closes #123
---
 dtcwt/numpy/lowlevel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dtcwt/numpy/lowlevel.py b/dtcwt/numpy/lowlevel.py
index 5310d35..4f6d700 100644
--- a/dtcwt/numpy/lowlevel.py
+++ b/dtcwt/numpy/lowlevel.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import
+from __future__ import absolute_import, division
 
 __all__ = [ 'colfilter', 'colifilt', 'coldfilt', ]
 
@@ -137,7 +137,7 @@ def coldfilt(X, ha, hb):
     hbo = as_column_vector(hb[0:m:2])
     hbe = as_column_vector(hb[1:m:2])
     t = np.arange(5, r+2*m-2, 4)
-    r2 = r/2;
+    r2 = r//2;
     Y = np.zeros((r2,c), dtype=X.dtype)
 
     if np.sum(ha*hb) > 0:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list