[NumPy-Tickets] [NumPy] #1866: Cannot vectorize fortran function

NumPy Trac numpy-tickets@scipy....
Tue Jun 14 04:20:48 CDT 2011


#1866: Cannot vectorize fortran function
----------------------+-----------------------------------------------------
 Reporter:  aragilar  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  1.5.1      
 Keywords:            |  
----------------------+-----------------------------------------------------
 When I attempt to call numpy.vectorize on a function in a module generated
 by f2py, I get the following error:

 {{{
 Traceback (most recent call last):
   File "./graph.py", line 40, in <module>
     print calc_alpha(data)
   File "./graph.py", line 31, in calc_alpha
     lambdas = np.vectorize(flambda)(m_mss, star_cat)
   File "/usr/lib/pymodules/python2.6/numpy/lib/function_base.py", line
 1769, in __init__
     nin, ndefault = _get_nargs(pyfunc)
   File "/usr/lib/pymodules/python2.6/numpy/lib/function_base.py", line
 1701, in _get_nargs
     "failed to determine the number of arguments for %s" % (obj))
 ValueError: failed to determine the number of arguments for <fortran
 flambda>
 }}}


 The version of numpy I am using is from debian - 1.5.1-2.b1 (unstable).

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


More information about the NumPy-Tickets mailing list