[Scipy-tickets] [SciPy] #820: mio load specific variable(s)

SciPy scipy-tickets@scipy....
Tue Dec 30 11:46:20 CST 2008

#820: mio load specific variable(s)
 Reporter:  lkilcher     |        Owner:  matthew.brett@gmail.com
     Type:  enhancement  |       Status:  new                    
 Priority:  normal       |    Milestone:  0.8                    
Component:  scipy.io     |      Version:                         
 Severity:  normal       |   Resolution:                         
 Keywords:               |  
Comment (by matthew.brett@gmail.com):

 I think the variable_names kwarg does what you want - see the
 MatFileReader base class get_variables method. It is probably slow for
 matlab 5 files, because the current implementation has to read in all the
 matrices one by one, if they are compressed, whether they are being
 returned or not.  The relevant code is in mio5.py, around lines 324 -
 Mat5ZArrayReader.  I could imagine an implementation that used a GzipFile
 instead of reading the whole (compressed) matrix in.

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

More information about the Scipy-tickets mailing list