Skip to content

Commit 10eafa0

Browse files
committed
fix testing issue for index normalization
1 parent 11d3c8e commit 10eafa0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Release Notes
7979
* address pygam incompatibility with newer scipy versions
8080
* address fcsparser incompatibility with Numpy 2.0
8181
* use different joblib backend in bugy version
82+
* more convinient cell-name handling for intergers (e.g., in spatial data)
8283

8384

8485
### Version 1.4.1

tests/test_presults_cluster_gene_trends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def test_cluster_gene_trends_parameters():
145145
clusters2 = cluster_gene_trends(trends, "branch1", n_neighbors=20)
146146

147147
# The clusters should be different with different parameters
148-
assert (clusters1 != clusters2).any()
148+
# Convert to string to avoid categorical comparison issues with different categories
149+
assert (clusters1.astype(str) != clusters2.astype(str)).any()
149150

150151

151152
def test_cluster_gene_trends_error_handling():

0 commit comments

Comments
 (0)