[Scipy-tickets] [SciPy] #653: global name 'Mat5CellWriter' is not defined

SciPy scipy-tickets@scipy....
Sat Nov 29 04:17:46 CST 2008


#653: global name 'Mat5CellWriter' is not defined
----------------------+-----------------------------------------------------
 Reporter:  nich2o    |        Owner:  somebody
     Type:  defect    |       Status:  new     
 Priority:  high      |    Milestone:  0.7.0   
Component:  scipy.io  |      Version:          
 Severity:  normal    |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by hodgestar):

 The io.savemat documentation says:

   Save a dictionary of names and arrays into the MATLAB-style .mat file.

 Since the value of 'd' (`{1: 2}`) cannot be converted to an array by
 numpy.asanyarray, the TypeError raised seems reasonable. Running

 {{{
 #python
 >>> io.savemat('test', {'d':[1, 2]}, format='5')
 >>> io.loadmat('test')
 {'d': array([1, 2]), '__version__': '1.0', '__header__': 'MATLAB 5.0 MAT-
 file Platform: posix, Created on: Sat Nov 29 12:09:36 2008',
 '__globals__': []}
 }}}

 completes without errors and seems to return a reasonable result.

 Unless there is something I'm missing here, I think this can be closed.

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/653#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