-
Notifications
You must be signed in to change notification settings - Fork 681
(feat): calculate_qc_metrics with dask
#3307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/scanpy/preprocessing/_qc.py
Outdated
|
|
||
|
|
||
| @numba.njit(cache=True, parallel=True) | ||
| # @numba.njit(cache=True, parallel=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the current blocker. Without this commented, I just get a "quiet" failure. Asked on zulip: https://scverse.zulipchat.com/#narrow/channel/456188-Dask/topic/Numba.20in.20Dask/near/478248965
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3307 +/- ##
==========================================
+ Coverage 77.21% 77.23% +0.02%
==========================================
Files 111 111
Lines 12597 12618 +21
==========================================
+ Hits 9727 9746 +19
- Misses 2870 2872 +2
|
|
Apparently the problem I saw here with |
flying-sheep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
The diff for test_qc_metrics is a bit hard to follow. Am I right that you simply
- pulled out
test_qc_metrics_no_log1pandtest_qc_metrics_idempotent - parametrized it with all array types
- added
with maybe_dask_process_context():
Thanks for pulling the tests apart!
You are right! |
|
great! then apart from my suggestions and the crash problem, this looks ready. |
flying-sheep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful. we should decide how to deal with the missing f-literals, otherwise LGTM
|
OK, #3335 is ready. We should manually check if it can get rid of /edit: it’s not ready |
Co-authored-by: Philipp A. <[email protected]>
calculate_qc_metricsfordask#2937