Skip to content

Commit

Permalink
adapted error text of int32 overflow check.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpetschko committed Feb 19, 2025
1 parent 4b989c3 commit 5c5b80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scirpy/ir_dist/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ def calc_block_gpu(
row_element_sum <= np.iinfo(np.int32).max
), f"""ERROR: There are too many result values to be held by the resulting CSR matrix of the current block.
Current number: {row_element_sum}, Maximum number: {np.iinfo(np.int32).max}.
Choose a higher number of blocks to resolve the problem."""
Consider choosing a smaller cutoff to resolve this issue."""

indptr = np.zeros(seqs_mat1.shape[0] + 1, dtype=np.int32)
indptr[1:] = np.cumsum(row_element_counts)
Expand Down

0 comments on commit 5c5b80c

Please sign in to comment.