Skip to content

Commit

Permalink
also check whether the GALAXY_SLOTS is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanvidem committed Jan 10, 2025
1 parent 5a2bc5a commit 08d140f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/spacexr/spacexr_cside.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ myRCTD <- readRDS('inputs/rctd.rds')
# set max cores
cores = Sys.getenv("GALAXY_SLOTS", unset= NA)
if (is.na(cores)) {
if (is.na(cores) || !nzchar(cores)) {
cores = 1
}
myRCTD@config[["max_cores"]] <- as.numeric(cores)
Expand Down

0 comments on commit 08d140f

Please sign in to comment.