[python-dtcwt] 01/17: Fix usage of unsafe inplace casting.

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 0fa04e68f4d46ae8e36e7e4c20fb0620b0169d46
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Jan 27 17:42:22 2016 +0000

    Fix usage of unsafe inplace casting.
---
 tests/test_xfm3.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_xfm3.py b/tests/test_xfm3.py
index e8d0b2e..0fa9dab 100644
--- a/tests/test_xfm3.py
+++ b/tests/test_xfm3.py
@@ -14,8 +14,8 @@ def setup():
     grid = slice(-(GRID_SIZE>>1), (GRID_SIZE>>1))
     X, Y, Z = np.mgrid[grid,grid,grid]
 
-    Y *= 1.2
-    Z *= 1.4
+    Y = Y * 1.2
+    Z = Z * 1.4
 
     r = np.sqrt(X*X + Y*Y + Z*Z)
     ellipsoid = np.where(r <= SPHERE_RAD, 1.0, 0.0).astype(np.float64)

-- 
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