fix: support Dask and cupy/scipy sparse matrices in min/max#135
fix: support Dask and cupy/scipy sparse matrices in min/max#135flying-sheep merged 9 commits intoscverse:mainfrom
min/max#135Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
==========================================
+ Coverage 96.76% 99.15% +2.38%
==========================================
Files 19 19
Lines 464 473 +9
==========================================
+ Hits 449 469 +20
+ Misses 15 4 -11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #135 will not alter performanceComparing Summary
|
mean_var and support Dask in min/maxmin/max
|
OK, looks like there are more issues with min/max, I’m sorry that I didn’t catch that before making the release. |
Yes, it seems so... |
|
Hi @flying-sheep, is there something I can do to help fix the CI? Do you know what's going wrong? |
|
We didn’t test
I’m working on a scanpy release, so if you want to leave this to me, you’ll need to wait a little 😉 |
|
Okay no problem, I may try to fix it Good luck with the Scanpy release! |
min/maxmin/max
min/maxmin/max
|
Here we go! |
|
Very nice, thanks @flying-sheep! |

Closes #134
I updated the dtype behavior for dask to fix #134.
I also added support for DiskArray in mean_var - I think we just needed to always
np.powerinstead of the**notation. Except if you had a specific reason to use**@flying-sheep?I think it's very inefficient though, since it will move the result of the power operation directly in memory (at least, this is what I understand, but it may be wrong). We would like to have it in memory only after the mean reduction, but maybe there is no other way to do that - I'm not familiar enough with
h5.Datasets.I wanted to add some tests but I don't understand all the details of the tests, is there any instructions or CONTRIBUTING.md file I could use to run and update the tests?