Skip to content

Commit 62a9658

Browse files
committed
typo
1 parent 7772f9b commit 62a9658

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/spatialdata_plot/pl/basic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,9 @@ def show(
674674
# the index and randomise colours for it
675675

676676
# add fake column for limiting the amount of different colors
677-
sdata.table.obs["fake"] = np.random.randint(0, N_DISTINCT_FOR_RANDOM, sdata.table.obs.shape[0])
677+
sdata.table.obs["fake"] = np.random.randint(
678+
0, N_DISTINCT_FOR_RANDOM, sdata.table.obs.shape[0]
679+
)
678680

679681
# has a table, so it has a region key
680682
region_key = _get_region_key(sdata)
@@ -713,7 +715,7 @@ def show(
713715
}
714716
)
715717

716-
tmp_table["fake"] = np.random.randint(0, N_DISTINCT_FOR_RANDOM, sdata.table.obs.shape[0])
718+
tmp_table["fake"] = np.random.randint(0, N_DISTINCT_FOR_RANDOM, len(tmp_table))
717719
distinct_cells = max(list(cell_ids_per_label.values()))
718720

719721
if sdata.table is not None:

0 commit comments

Comments
 (0)