[Numpy-discussion] BUG in nd_image
Sebastian Haase
haase at msg.ucsf.edu
Mon Dec 5 12:14:04 CST 2005
Hi,
When I call nd_image.rotate with reshape=False I always get
"output shape not correct"
>>> U.nd.rotate(d[0], 20, axes=(-1, -2), reshape=0, output=d[1], 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
rotate
output, order, mode, cval, prefilter)
File "/jws30/haase/PrLin/numarray/nd_image/interpolation.py", line 205, in
affine_transform
output_type)
File "/jws30/haase/PrLin/numarray/nd_image/_ni_support.py", line 73, in
_get_output
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
[128, 528]
(Pdb) p output.shape
(128, 528)
(Pdb) p shape != output.shape
1
(Pdb) p shape , output.shape
([128, 528], (128, 528))
(Pdb)
I'm using a CVS version around 1.3 ( /ni_interpolation.c/1.17/Fri Apr 22
20:35:27 2005//THEAD)
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 ;-)
Thanks,
Sebastian Haase
More information about the Numpy-discussion
mailing list