Skip to content

Commit 5d327bd

Browse files
committed
make aggr safe
1 parent 24551bd commit 5d327bd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/rapids_singlecell/get/_aggregated.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
from scanpy.get._aggregated import _combine_categories
1010

1111
from rapids_singlecell._compat import DaskArray, _meta_dense
12-
from rapids_singlecell._cuda import _aggr_cuda
12+
13+
try:
14+
from rapids_singlecell._cuda import _aggr_cuda
15+
except ImportError:
16+
_aggr_cuda = None
1317
from rapids_singlecell.get import _check_mask
1418
from rapids_singlecell.preprocessing._utils import _check_gpu_X
1519

0 commit comments

Comments
 (0)