Re: Numpy and cPickle



Martin Manns wrote:
Hi

If I cPickle a numpy array under Linux and un-cPickle it under Solaris
10, my arrays seem to be transposed. Is there any way to get the same
behavior on both platforms without testing which platform the python
script runs on and then transposing the array?

I am using python 2.4.2 and numpy 0.9.6 on both machines.

Transposed? That's odd. There was a byteorder issue with pickles going across
differently-endianed platforms that was fixed in the past few days. Could you
come up with a small bit of code that shows the problem and post it and the
incorrect output to the bug tracker?

http://projects.scipy.org/scipy/numpy/newticket

Thank you!

--
Robert Kern
robert.kern@xxxxxxxxx

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

.



Relevant Pages

  • Numpy and cPickle
    ... If I cPickle a numpy array under Linux and un-cPickle it under Solaris ... script runs on and then transposing the array? ... I am using python 2.4.2 and numpy 0.9.6 on both machines. ...
    (comp.lang.python)
  • Re: Transpose data into a 2 dimensional array.
    ... > Can someone show me how to transpose data into a 2 dimensional array. ... This is not a simple transposing of your input data. ... > horizontally across 2 table cells of the first row and BBB spans ...
    (comp.lang.perl.misc)
  • Re: Too Much Chart Data for Excel Col Limits
    ... Well, yeah, but transposing would definitely get us into trouble with the ... an array can serve as a chart data source. ... Jon Peltier, Microsoft Excel MVP ...
    (microsoft.public.excel.charting)
  • Re: Enlighten me - Mac vs. PC processing speeds
    ... code runs at such different speeds on Macs vs. PCs? ... The task involved transposing 4000+ ... then created another loop to write out the array to the ...
    (microsoft.public.mac.office.excel)
  • Re: exposing C array to python namespace: NumPy and array module.
    ... > between python array module ... > the source tree) and NumPy array. ... They both use C-style memory block ...
    (comp.lang.python)