From 9a7806aae66c9fb177f265e042128c242c920f49 Mon Sep 17 00:00:00 2001 From: tanliwei Date: Tue, 3 Dec 2024 10:48:59 +0800 Subject: [PATCH] update some error messages --- stereo/algorithm/_louvain.py | 2 +- stereo/algorithm/neighbors.py | 2 +- stereo/algorithm/single_r/single_r.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stereo/algorithm/_louvain.py b/stereo/algorithm/_louvain.py index 5c466256..331d42bd 100644 --- a/stereo/algorithm/_louvain.py +++ b/stereo/algorithm/_louvain.py @@ -124,7 +124,7 @@ def louvain( except ImportError: raise ImportError( "Your env don't have GPU related RAPIDS packages, if you want to run this option, follow the " - "guide at https://stereopy.readthedocs.io/en/latest/Tutorials/clustering_by_gpu.html") + "guide at https://stereopy.readthedocs.io/en/latest/Tutorials/Clustering_by_GPU.html") offsets = cudf.Series(adjacency.indptr) indices = cudf.Series(adjacency.indices) diff --git a/stereo/algorithm/neighbors.py b/stereo/algorithm/neighbors.py index 35e9f6c9..c662954b 100644 --- a/stereo/algorithm/neighbors.py +++ b/stereo/algorithm/neighbors.py @@ -83,7 +83,7 @@ def compute_neighbors_rapids( from cuml.neighbors.nearest_neighbors import NearestNeighbors except ImportError: raise ImportError("Your env don't have GPU related RAPIDS packages, if you want to run this option, follow the " - "guide at https://stereopy.readthedocs.io/en/latest/Tutorials/clustering_by_gpu.html") + "guide at https://stereopy.readthedocs.io/en/latest/Tutorials/Clustering_by_GPU.html") nn = NearestNeighbors(n_neighbors=n_neighbors, metric=metric) X_contiguous = np.ascontiguousarray(X, dtype=np.float32) diff --git a/stereo/algorithm/single_r/single_r.py b/stereo/algorithm/single_r/single_r.py index 9e4cc5ba..950beb9c 100644 --- a/stereo/algorithm/single_r/single_r.py +++ b/stereo/algorithm/single_r/single_r.py @@ -225,7 +225,7 @@ def check_gpu_env(): except ImportError: raise ImportError( "Your env don't have GPU related RAPIDS packages, if you want to run this option, follow the " - "guide at https://stereopy.readthedocs.io/en/latest/Tutorials/clustering_by_gpu.html") + "guide at https://stereopy.readthedocs.io/en/latest/Tutorials/Clustering_by_GPU.html") @staticmethod def load_cell_types(ref_exp_data, ref_use_col):