churchyard / rpms / scipy

Forked from rpms/scipy 2 years ago
Clone
7005ef
--- scipy/stsci/image/lib/_image.py	2008-11-24 10:52:40.000000000 +0100
7005ef
+++ scipy/stsci/image/lib/_image.py	2009-02-26 16:43:44.000000000 +0100
7005ef
@@ -1,5 +1,5 @@
7005ef
 import numpy as np
7005ef
-import scipy.stsci.convolve
7005ef
+import scipy.stsci.convolve as convolve
7005ef
 import scipy.stsci.convolve._correlate as _correlate
7005ef
 
7005ef
 def _translate(a, dx, dy, output=None, mode="nearest", cval=0.0):
7005ef
@@ -55,4 +55,4 @@
7005ef
     if output is not None:
7005ef
         output._copyFrom(np.rot90(output, -rotation%4))
7005ef
     else:
7005ef
-        return np.rot90(d, -rotation % 4).astype(a.type())
7005ef
+        return np.rot90(d, -rotation % 4).astype(a.dtype)
7005ef