Update calibrateMuso.R

This commit is contained in:
MilanFischer
2024-04-13 00:35:30 +02:00
committed by GitHub
parent f72e49a4a9
commit 6e9f31234e
+2 -2
View File
@@ -16,8 +16,8 @@ calibrateMuso <- function(measuredData, parameters =read.csv("parameters.csv", s
thread_prefix="thread", numCores, pb = txtProgressBar(min=0, max=iterations, style=3), thread_prefix="thread", numCores, pb = txtProgressBar(min=0, max=iterations, style=3),
maxLikelihoodEpc=TRUE, maxLikelihoodEpc=TRUE,
pbUpdate = setTxtProgressBar, outputLoc="./", method="GLUE",lg = FALSE, w=NULL, ...){ pbUpdate = setTxtProgressBar, outputLoc="./", method="GLUE",lg = FALSE, w=NULL, ...){
print(numCores)
future::plan(future::multisession(workers = numCores)) future::plan(future::multisession(workers = numCores, envir = environment()))
file.remove(list.files(path = settings$inputLoc, pattern="progress.txt", recursive = TRUE, full.names=TRUE)) file.remove(list.files(path = settings$inputLoc, pattern="progress.txt", recursive = TRUE, full.names=TRUE))
file.remove(list.files(path = settings$inputLoc, pattern="preservedCalib.csv", recursive = TRUE, full.names=TRUE)) file.remove(list.files(path = settings$inputLoc, pattern="preservedCalib.csv", recursive = TRUE, full.names=TRUE))
unlink(file.path(settings$inputLoc,"thread"),recursive=TRUE) unlink(file.path(settings$inputLoc,"thread"),recursive=TRUE)