[source]
http://github.com/numpy/numpy/blob/v1.8.1/numpy/core/fromnumeric.py#L1072
http://docs.scipy.org/doc/numpy/reference/generated/numpy.squeeze.html#numpy.squeeze
2014-08-27 16:08 GMT+01:00 phinn stuart dphinnstu...@gmail.com:
Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy
Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into
(480L, 1440L)?
Thanks in the advance.
phinn
--
https://mail.python.org/mailman/listinfo/python-list
On 08/27/2014 08:08 AM, phinn stuart wrote:
Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array
into (480L, 1440L)?
Thanks in the advance.
phinn
A simple assignment into the arrays shape does it:
a = numpy.zeros((1,480,1440))
a.shape
(1, 480, 1440)
a.shape = (480,1440)