Skip to content

Commit

Permalink
Update src/scanpy/preprocessing/_simple.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ilan Gold <[email protected]>
  • Loading branch information
Intron7 and ilan-gold authored Feb 11, 2025
1 parent 726a625 commit 104a0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanpy/preprocessing/_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ def _create_regressor_categorical(
# for each gene per category
mask = category == cat_array
for ix in numba.prange(X.T.shape[0]):
regressors[mask, ix] = X.T[ix][mask].mean()
regressors[mask, ix] = X.T[ix, mask].mean()
return regressors

Check warning on line 653 in src/scanpy/preprocessing/_simple.py

View check run for this annotation

Codecov / codecov/patch

src/scanpy/preprocessing/_simple.py#L650-L653

Added lines #L650 - L653 were not covered by tests


Expand Down

0 comments on commit 104a0f3

Please sign in to comment.