Numeric arrays - initialising with binary data
Jesper Olsen
jolsen at mailme.dk
Mon Feb 25 07:46:35 EST 2002
Hi,
The build in array type has the methods
array.tostring()
array.fromstring()
which make it easy to initialise arrays with binary data
read from a file.
The Numeric array, however, apperantly only has the tostring method.
How can I initialise a Numeric array (eg Float32), with binary data?
I can off course do this by using the Numeric C-API, but I am sure
there must be an easier way.
I am surprised the Numeric array type does not have the same methods
as the build in type, if the intention is in time to replace this
module...
Cheers
Jesper
More information about the Python-list
mailing list