[NumPy-Tickets] [NumPy] #1777: fh is not defined in npyio.py fromregex

NumPy Trac numpy-tickets@scipy....
Tue Mar 22 13:49:25 CDT 2011

#1777: fh is not defined in npyio.py fromregex
 Reporter:  citizenwad  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  Other       |     Version:  1.5.1      
 Keywords:              |  
 NameError: global name 'fh' is not defined
 File "/Users/williamdawson/Programs/fat_wip.py", line 263, in <module>
  header_gal = readheader(gal_cat)
 File "/Users/williamdawson/Programs/tools.py", line 96, in readheader
 File "/Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-
 packages/numpy/lib/npyio.py", line 972, in fromregex

 Note that this code works perfectly fine with the python 2.6 EPD release.

 The readheader program just uses
 header = numpy.fromregex(catalog,r"ttype([0-9]+)(?:\s)?=(?:\s)?(\w+)",

 where catalog = [string], Name (perhaps including path) of the catalog
         that contains all of the data (e.g. x,y,e1,e2,...). Must include
         ttype header designations for the columns e.g.:
         #ttype0 = objid
         #ttype1 = x

Ticket URL: <http://projects.scipy.org/numpy/ticket/1777>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list