[python-dtcwt] 31/497: add fix for numpy type cast complaints
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.
commit 237de727039dde05e1a187146fc7dea7d35fbe6c
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Wed Aug 7 17:26:48 2013 +0100
add fix for numpy type cast complaints
---
dtcwt/lowlevel.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dtcwt/lowlevel.py b/dtcwt/lowlevel.py
index 8b69346..7a944c5 100644
--- a/dtcwt/lowlevel.py
+++ b/dtcwt/lowlevel.py
@@ -73,16 +73,16 @@ def reflect(x, minx, maxx):
# Reflect y in maxx.
t = y > maxx
- y[t] = 2*maxx - y[t]
+ y[t] = (2*maxx - y[t]).astype(y.dtype)
while np.any(y < minx):
# Reflect y in minx.
t = y < minx
- y[t] = 2*minx - y[t]
+ y[t] = (2*minx - y[t]).astype(y.dtype)
# Reflect y in maxx.
t = y > maxx
- y[t] = 2*maxx - y[t]
+ y[t] = (2*maxx - y[t]).astype(y.dtype)
return y
--
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