Reduce methods give wrong output with shapes that contain 0
Bug #573240 reported by
kwgoodman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
larry |
Fix Committed
|
Low
|
kwgoodman |
Bug Description
The reduce methods (sum, mean, max, lastrank, etc) do not return the correct output when the input is ndim > 1 with a shape that contains a zero.
For example, la.larry(
>> la.larry(
label_0
0
1
label_1
0
1
2
x
array([[ NaN, NaN, NaN],
[ NaN, NaN, NaN]])
This bug is related to Bug #518442.
which would match numpy:
>> np.nansum(
array([[ NaN, NaN, NaN],
[ NaN, NaN, NaN]])
Related branches
Changed in larry: | |
milestone: | none → 0.3 |
assignee: | nobody → kwgoodman (kwgoodman) |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in larry: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.