Update calibrateMuso.R

numCores default value removed
This commit is contained in:
MilanFischer 2024-04-13 00:27:09 +02:00 committed by GitHub
parent 73ab5d43f3
commit 9fc504f5c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,11 +13,11 @@ calibrateMuso <- function(measuredData, parameters =read.csv("parameters.csv", s
modifyOriginal=TRUE, likelihood, uncertainity = NULL,
naVal = NULL, postProcString = NULL,
sourceFile=NULL, # bases for musoRand if dependecy group is not fully defined by parameters.csv
thread_prefix="thread", numCores = max(c(parallel::detectCores()-1,1)), pb = txtProgressBar(min=0, max=iterations, style=3),
thread_prefix="thread", numCores, pb = txtProgressBar(min=0, max=iterations, style=3),
maxLikelihoodEpc=TRUE,
pbUpdate = setTxtProgressBar, outputLoc="./", method="GLUE",lg = FALSE, w=NULL, ...){
future::plan(future::multisession(workers = numCores), numCores = numCores)
future::plan(future::multisession(workers = numCores))
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))
unlink(file.path(settings$inputLoc,"thread"),recursive=TRUE)