[Scipy-tickets] [SciPy] #1606: large array causes savemat to produce a "corrupt" file

SciPy Trac scipy-tickets@scipy....
Wed Feb 22 10:41:34 CST 2012

#1606: large array causes savemat to produce a  "corrupt" file
 Reporter:  david.warde-farley  |       Owner:  somebody   
     Type:  defect              |      Status:  new        
 Priority:  normal              |   Milestone:  Unscheduled
Component:  scipy.io            |     Version:  0.9.0      
 Keywords:  matlab              |  
 In Python:

 >>> print scipy.__version__
 >>> scipy.io.savemat('test.mat', dict(X=numpy.zeros((50000, 54000),


                             < M A T L A B (R) >
                   Copyright 1984-2010 The MathWorks, Inc.
                 Version (R2011a) 64-bit (glnxa64)
                                March 18, 2011

   To get started, type one of these: helpwin, helpdesk, or demo.
   For product information, visit www.mathworks.com.

 >> load test.mat
 ??? Error using ==> load
 Unable to read MAT-file /u/wardefar/test.mat

 File may be corrupt.

 This smells like it may be a deficiency in the MATLAB v5 format itself,
 but if so this save should not ostensibly succeed on the Python end.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1606>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list