You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reduceat should handle outlier indices gracefully (Trac #237) #835
to the very least .reduceat (a, I) should accept len (a) in I
usage example:
def weighted_histo (binborders, data):
sd = sort (data)
I = sd.searchsorted (binborders)
# Now elements of I may range between 0 and len (sd).
return add.reduceat (sd, I)
Be more specific about the desired behavior. Instead of raising an error, should it instead return the identity of the operator (assuming one is defined).
Activity
numpy-gitbot commentedon Oct 23, 2012
@teoliphant wrote on 2006-08-08
Be more specific about the desired behavior. Instead of raising an error, should it instead return the identity of the operator (assuming one is defined).
numpy-gitbot commentedon Oct 23, 2012
trac user martin_wiechert wrote on 2006-08-08
At least for nondecreasing I the "natural" (read: expected by naive user like me) behaviour would be
Cf. also ticket #834.
numpy-gitbot commentedon Oct 23, 2012
Milestone changed to
1.1by @alberts on 2007-05-12numpy-gitbot commentedon Oct 23, 2012
Milestone changed to
Unscheduledby @cournape on 2009-03-02