Skip to content

Commit ab6c6c6

Browse files
committed
Fix size backport
1 parent 9883246 commit ab6c6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scanpy/plotting/_tools/scatterplots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def embedding( # noqa: PLR0912, PLR0913, PLR0915
226226
size = np.array(size, dtype=float)
227227
else:
228228
# if the basis has NaNs, ignore the corresponding cells for size calcluation
229-
size = 120000 / (~np.isnan(basis_values).any(axis=1)).sum()
229+
size = (120000 / (~np.isnan(basis_values).any(axis=1)).sum()).item()
230230

231231
##########
232232
# Layout #

0 commit comments

Comments
 (0)