bincount([], minlength=2) should work right?
bincount([]) makes no sense, but if a minlength argument is provided, then the routine should succeed. It fails in 1.6.1, has it been fixed in master? - James -- http://www-etud.iro.umontreal.ca/~bergstrj
On 2/25/2012 4:44 PM, James Bergstra wrote:
bincount([]) makes no sense,
I disagree: http://permalink.gmane.org/gmane.comp.python.numeric.general/42041
but if a minlength argument is provided, then the routine should succeed.
Definitely! Alan Isaac
On Sat, Feb 25, 2012 at 5:13 PM, Alan G Isaac <alan.isaac@gmail.com> wrote:
On 2/25/2012 4:44 PM, James Bergstra wrote:
bincount([]) makes no sense,
I disagree: http://permalink.gmane.org/gmane.comp.python.numeric.general/42041
but if a minlength argument is provided, then the routine should succeed.
Definitely!
There's a PR to fix this here. https://github.com/numpy/numpy/pull/84 Skipper
On Saturday, February 25, 2012, Alan G Isaac wrote:
On 2/25/2012 4:44 PM, James Bergstra wrote:
bincount([]) makes no sense,
I disagree: http://permalink.gmane.org/gmane.comp.python.numeric.general/42041
but if a minlength argument is provided, then the routine should succeed.
Definitely!
Alan Isaac
I thought we already fixed this? Or was that only for histogram? Ben Root
On Sat, Feb 25, 2012 at 5:13 PM, Alan G Isaac <alan.isaac@gmail.com> wrote:
On 2/25/2012 4:44 PM, James Bergstra wrote:
bincount([]) makes no sense,
I disagree: http://permalink.gmane.org/gmane.comp.python.numeric.general/42041
gmane is down to me at the moment, but if this argues that the answer should be [], that would make sense to me too. I was too quick about undefining it in my post. -- http://www-etud.iro.umontreal.ca/~bergstrj
participants (4)
-
Alan G Isaac -
Benjamin Root -
James Bergstra -
Skipper Seabold