Skip to content

Commit 23c3a30

Browse files
committed
Improve leidenalg debugging
1 parent 8af4f20 commit 23c3a30

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

singlecell/resources/chunks/FindClustersAndDimRedux.R

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
if (!reticulate::py_module_available(module = 'leidenalg')) {
22
logger::log_warn('python leidenalg not found!')
33
logger::log_warn(paste0('Python available: ', reticulate::py_available()))
4-
logger::log_warn(reticulate::py_config())
5-
logger::log_warn(paste0('installed packages: ', paste0(reticulate::py_list_packages()$package, collapse = ', ')))
4+
logger::log_warn('Python config')
5+
pyConfig <- reticulate::py_config()
6+
for (pn in names(pyConfig)) {
7+
logger::log_warn(paste0(pn, ': ', paste0(pyConfig[[pn]]), collapse = ','))
8+
}
9+
10+
logger::log_warn(paste0('pythonpath: ', reticulate::py_config()$pythonpath))
11+
12+
logger::log_warn('Python packages:')
13+
for (pn in reticulate::py_list_packages()$package) {
14+
logger::log_warn(pn)
15+
}
616
}
717

818
for (datasetId in names(seuratObjects)) {

0 commit comments

Comments
 (0)