From e610f431175994976aadb182e9da380d2906db8e Mon Sep 17 00:00:00 2001 From: Pedro Castillo Rosique <136706033+pedrocastillorosique@users.noreply.github.com> Date: Mon, 6 Oct 2025 18:50:00 +0200 Subject: [PATCH] Resolve leiden.py bug As the function was called louvain, and the init.py was doing from .leiden import leiden there was a bug. --- stlearn/tl/clustering/leiden.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stlearn/tl/clustering/leiden.py b/stlearn/tl/clustering/leiden.py index f49170bc..8a721d3a 100644 --- a/stlearn/tl/clustering/leiden.py +++ b/stlearn/tl/clustering/leiden.py @@ -7,7 +7,7 @@ from scipy.sparse import spmatrix -def louvain( +def leiden( adata: AnnData, resolution: float | None = None, random_state: int | RandomState | None = 0,