[Numpy-discussion] numpy.nansum() behavior in 1.3.0
Mon Jun 1 18:30:22 CDT 2009
On Mon, Jun 1, 2009 at 15:31, <firstname.lastname@example.org> wrote:
> On Mon, Jun 1, 2009 at 4:06 PM, Alan G Isaac <email@example.com> wrote:
>> On 6/1/2009 3:38 PM firstname.lastname@example.org apparently wrote:
>>> Here's a good one:
>> >>> all()
>> >>> any()
> array(, dtype=float64)
> I don't know what's the logic, but it causes the bug in np.nansum.
You will have to special-case empty arrays, then.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion