← Back to team overview

python-quantities-developers team mailing list archive

[Bug 393999] Re: ufunc <ufunc 'ones_like'> not implemented

 

** Changed in: python-quantities
       Status: Fix Committed => Fix Released

-- 
ufunc <ufunc 'ones_like'> not implemented
https://bugs.launchpad.net/bugs/393999
You received this bug notification because you are a member of Python
Quantities Development Team, which is subscribed to python-quantities.

Status in Physical Quantities for Python: Fix Released

Bug description:
I keep having the following line printed to my console:
ufunc <ufunc 'ones_like'> not implemented, please file a bug report


I think the report is being made here:
/quantities/quantity.pyc in __array_wrap__(self, obj, context)
    218 #        print self, obj, result, uf, objs
    219         try:
    220             result._dimensionality = p_dict[uf](*objs)
    221         except KeyError:
    222             print 'ufunc %r not implemented, please file a bug report' % uf

I have updated numpy and scipy to the latest releases and as far as I can tell ones_like works fine.

(It took me a while to find where it was coming from and with whom I should file the requested bug report. Perhaps make the message clearer that it's 'quantities' asking for the report, so we don't all spam numpy with bug reports?)