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

SciPy Trac scipy-tickets@scipy....
Wed Feb 22 13:21:37 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, savemat     |  

Comment(by david.warde-farley):

 Having a glance at the code, it seems like the cleanest place to perform
 this check is right at the beginning of `savemat()` itself, so we can
 avoid ever opening the file handle/avoid the need to close it. That said,
 the writer objects `put_variables()` methods should probably perform a
 similar check, so that any code that accesses a writer object directly
 doesn't accidentally emit bad files without any notification.

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

More information about the Scipy-tickets mailing list