[SciPy-user] newbie: easy question (I hope)

Chiara Caronna chiaracaronna@hotmail....
Mon Feb 5 09:38:13 CST 2007


Hi,
I have an old code, where I used numarray, and there is this command:
where c is a 1d array

c= unpack(format, string)
ccdimage=N.array(c,shape=[nrows,ncol])

if I use array from numpy I got this error:

"shape is an invalid keyword argument for this function"
I need to transform c in an array of shape [nrows,ncol], how can I do it 
with numpy?

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/



More information about the SciPy-user mailing list