[Numpy-discussion] BUG in nd_image
haase at msg.ucsf.edu
Mon Dec 5 12:14:04 CST 2005
When I call nd_image.rotate with reshape=False I always get
"output shape not correct"
>>> U.nd.rotate(d, 20, axes=(-1, -2), reshape=0, output=d, order=1,
mode="constant", cval=0.0, prefilter=0)
Traceback (most recent call last):
File "<input>", line 1, in ?
File "/jws30/haase/PrLin/numarray/nd_image/interpolation.py", line 351, in
output, order, mode, cval, prefilter)
File "/jws30/haase/PrLin/numarray/nd_image/interpolation.py", line 205, in
File "/jws30/haase/PrLin/numarray/nd_image/_ni_support.py", line 73, in
raise RuntimeError, "output shape not correct"
RuntimeError: output shape not correct
I tracked the problem down to "inputShape != outputShape" one being a tuple
the output shape being a list.
(Pdb) p shape
(Pdb) p output.shape
(Pdb) p shape != output.shape
(Pdb) p shape , output.shape
([128, 528], (128, 528))
I'm using a CVS version around 1.3 ( /ni_interpolation.c/1.17/Fri Apr 22
but I took a look at the current CVS and it seems to still be a problem
Looks like I'm the only one who doesn't want the reshape ;-)
More information about the Numpy-discussion