Commit 0083ab2
authored
* Optimize min_count for all numpy
For pure numpy arrays, min_count=1 (xarray default) is the same
as min_count=None, with the right fill_value. This avoids
one useless pass over the data, and one useless copy.
We need to always accumulate count with dask, to make sure we
get the right values at the end.
* Better?
1 parent c398f4e commit 0083ab2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2324 | 2324 | | |
2325 | 2325 | | |
2326 | 2326 | | |
| 2327 | + | |
2327 | 2328 | | |
2328 | 2329 | | |
2329 | 2330 | | |
| |||
2440 | 2441 | | |
2441 | 2442 | | |
2442 | 2443 | | |
2443 | | - | |
| 2444 | + | |
2444 | 2445 | | |
2445 | 2446 | | |
2446 | 2447 | | |
| |||
0 commit comments