Skip to content

Commit a27fae1

Browse files
author
niklasmueboe
committed
ignore index in concat
1 parent a1aee23 commit a27fae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ovrlpy/_kde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,6 @@ def _sample_expression(
284284
# TODO: sparse?
285285
with warnings.catch_warnings():
286286
warnings.simplefilter("ignore", category=ImplicitModificationWarning)
287-
adata = AnnData(pd.concat(patches).reset_index(drop=True)[gene_list].fillna(0))
287+
adata = AnnData(pd.concat(patches, ignore_index=True)[gene_list].fillna(0))
288288
adata.obsm["spatial"] = np.rint(np.vstack(coords) * kde_bandwidth).astype(np.int32)
289289
return adata

0 commit comments

Comments
 (0)