Skip to content

Commit 45c1db0

Browse files
authored
Merge pull request #166 from BiomedicalMachineLearning/fix_local
fix: DBSCAN min_samples error
2 parents b7270ce + 77dd6d5 commit 45c1db0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ repos:
1111
- id: requirements-txt-fixer
1212

1313
- repo: https://github.com/psf/black
14-
rev: 22.1.0
14+
rev: 22.3.0
1515
hooks:
1616
- id: black

stlearn/spatials/clustering/localization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def localization(
4747

4848
tmp = adata.obs[adata.obs[use_label] == i]
4949

50-
clustering = DBSCAN(eps=eps, min_samples=0, algorithm="kd_tree").fit(
50+
clustering = DBSCAN(eps=eps, min_samples=1, algorithm="kd_tree").fit(
5151
tmp[["imagerow", "imagecol"]]
5252
)
5353

0 commit comments

Comments
 (0)