[SciPy-User] memory errors when using savemat

David Cournapeau cournape@gmail....
Sat Jul 24 15:00:46 CDT 2010

On Sun, Jul 25, 2010 at 2:37 AM, Tyrel Newton <newton@tethers.com> wrote:
> I'm trying to use scipy.io.savemat to export a very large set of data to a .mat file. The dataset contains around 20 million floats. When I try to export this to a .mat file, I get a MemoryError. The specific MemoryError is:
> File "C:\Python26\lib\site-packages\scipy\io\matlab\miobase.py", line 557 in write_bytes
>        self.file_stream.write(arr.tostring(order='F'))
> I'm running this on Windows under Python 2.6.

Could you give us a small script which reproduces the error ? 20
million is pretty small, I suspect something else or a bug in scipy,



More information about the SciPy-User mailing list