-
Notifications
You must be signed in to change notification settings - Fork 627
normalize_total
with numba
#3571
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
base: main
Are you sure you want to change the base?
Conversation
for i in numba.prange(rows): | ||
count = counts_per_cell[i] / target_sum | ||
for j in range(indptr[i], indptr[i + 1]): | ||
data[j] /= count | ||
return counts_per_cell, target_sum, counts_per_cols |
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.
so this part can be in fast-array-utils under the name elem_mult
@flying-sheep right? This is what I understood from our discussions. Should we first implement elem_mult
then come back to this issue?
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.
Generally I wouldn’t stop scanpy improvements for fast_array_utils
.
But if part of this can be replaced with a mult helper, we could do that now!
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Co-authored-by: Philipp A. <flying-sheep@web.de>
@Intron7 you have to write |
Also this needs a release note! |
@flying-sheep of course |
Fixes #3135
This also removes the deprecated functions out