Skip to content

Commit

Permalink
parameter_scan: fix overwriting of progerss variable
Browse files Browse the repository at this point in the history
  • Loading branch information
naikymen committed Oct 14, 2024
1 parent 498c3da commit 20be3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/cellid_parameter_scan.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ parameter_scan <- function(parameters.df,
# Setup a progressbar and run CellID:
ntasks <- length(test.params)
pb <- txtProgressBar(max = ntasks, style = 3)
progress <- function(n) setTxtProgressBar(pb, n)
opts <- list(progress=progress)
progress_func <- function(n) setTxtProgressBar(pb, n)
opts <- list(progress=progress_func)
} else {
# Register a regular doParallel cluster
doParallel::registerDoParallel(cl)
Expand Down

0 comments on commit 20be3d0

Please sign in to comment.