[Scipy-tickets] [SciPy] #444: SciPy 0.5.2 Not able to properly read some .mat files

SciPy scipy-tickets@scipy....
Thu Jun 7 18:19:23 CDT 2007


#444: SciPy 0.5.2 Not able to properly read some .mat files
----------------------+-----------------------------------------------------
 Reporter:  eranders  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:          
Component:  scipy.io  |     Version:          
 Severity:  normal    |    Keywords:          
----------------------+-----------------------------------------------------
 SciPy ver. 0.5.2 had some changes to the matlab reader, specifically, the
 following code produces error:

 >>> from scipy import io
 >>> m = io.loadmat('foo', None, 0)   # 'foo' is the full name of the .mat
 file.
 UnboundLocalError: local variable 'full_name' referenced before assignment

 To fix:

 Line 25 in mio.py:

 full_file_name = file_name

 Changed to:

 full_name = file_name

 When entering the no-append control branch, full_name was at some point
 replaced with full_file_name resulting in returning an uninitialized value
 for full_name upon function completion.

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


More information about the Scipy-tickets mailing list