[SciPy-user] writing a binary file
Francesc Alted
falted at openlc.org
Fri Jan 24 03:58:19 EST 2003
Hola Agus,
A Dijous 23 Gener 2003 17:14, Agustin Lobo va escriure:
> How do I write a float array to a binary file?
> There is a
> readFloatArray()
> in Module Scientific, but not an equivalent
> writeFloatArray(), while writeArray()
> writes an ascii file.
You may want to have a try to PyTables (http://pytables.sf.net). It will let
you to save arbitrary Numeric arrays in binary format and preserving the
object properties. One of the advantages that PyTables offers over cPickle
is speed. So, if your dataset is large maybe it is worth to have it a try.
Adeu,
--
Francesc Alted
More information about the SciPy-User
mailing list