[Scipy-tickets] [SciPy] #743: [patch] read/write v5 .mat files with structs, cell arrays, objects, or function handles

SciPy scipy-tickets@scipy....
Wed Oct 1 10:27:10 CDT 2008


#743: [patch] read/write v5 .mat files with structs, cell arrays, objects, or
function handles
----------------------+-----------------------------------------------------
 Reporter:  thouis    |       Owner:  somebody 
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:           
Component:  scipy.io  |     Version:  devel    
 Severity:  normal    |    Keywords:  matlab io
----------------------+-----------------------------------------------------
 This patch adds the following functionality for v5 matlab files:
  * write structures
  * write cell arrays
  * write objects
  * read & write function handles
  * read & write 64-bit integers

 It modifies current functionality in a couple of places:
  * character arrays are converted to 1D arrays of fixed-length unicode
 strings (dtype changed from 'object' to 'UXXX')
  * structs are loaded as numpy arrays with named fields (removed the
 matstruct object)
  * objects are loaded as a mio5.MatlabObject, which contains a numpy array
 with named fields and the classname.  A similar object is used for
 function handles.

 Note that the new writers may be somewhat fragile in what they accept.
 We've tested with fairly complex nested structures, via loadmat piped
 directly to savemat.

 I was unable to discover who's currently responsible for the io.matlab
 code, else I would have communicated more directly with them.

 I've marked this as a "defect" because of ticket 653, which it fixes.

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


More information about the Scipy-tickets mailing list