[MATRIX-SIG] Possible bug in Numeric LoadArray function
Konrad Hinsen
hinsen@ibs.ibs.fr
Thu, 8 Jan 1998 12:30:31 +0100
> A pickled file for an integer array was created on an SGI Onyx.
> This machine has 4 byte ints and 4 byte longs.
>
> The picked file would not read on a DEC alpha (64 bit longs).
> The reshape function in LoadArray failed because the
> byte counts didn't match.
I am not surprised - the pickling approach used in NumPy is not really
portable. Anyway, it will have to be rewritten to profit from cPickle
under Python 1.5. Unfortunately, there is no perfect solution; either
pickling must make assumptions about the binary format of its data
types (as it does now), or it must apply a conversion, which can
become very time consuming for large arrays.
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire | Tel.: +33-4.76.88.99.28
Institut de Biologie Structurale | Fax: +33-4.76.88.54.94
41, av. des Martyrs | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France | Nederlands/Francais
-------------------------------------------------------------------------------
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________