Skip to content

Commit

Permalink
move helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 committed Dec 6, 2024
1 parent 62e5a61 commit f0f3782
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/rapids_singlecell/preprocessing/_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@

from rapids_singlecell.tools._utils import _choose_representation


def _cuvs_switch():
return parse_version(pylibraft.__version__) > parse_version("24.10")


if TYPE_CHECKING:
from collections.abc import Mapping

Expand Down Expand Up @@ -66,6 +61,10 @@ def _cuvs_switch():
_Metrics = _MetricsDense | _MetricsSparse


def _cuvs_switch():
return parse_version(pylibraft.__version__) > parse_version("24.10")


def _brute_knn(
X: cp_sparse.spmatrix | cp.ndarray,
Y: cp_sparse.spmatrix | cp.ndarray,
Expand Down

0 comments on commit f0f3782

Please sign in to comment.