Skip to content

Commit 0a0d058

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7772f9b commit 0a0d058

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/spatialdata_plot/pl/basic.py

Lines changed: 3 additions & 1 deletion
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)

src/spatialdata_plot/pl/render.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def _render_labels(
161161
ax.set_ylim(extent["y"][0], extent["y"][1])
162162

163163
for group in groups:
164-
165164
# Getting cell ids belonging to group and casting them to int for later numpy comparisons
166165
vaid_cell_ids = table[table[params["color_key"]] == group][params["instance_key"]].values
167166
vaid_cell_ids = [int(id) for id in vaid_cell_ids]

0 commit comments

Comments
 (0)