fixing ini postnames

This commit is contained in:
Hollos Roland 2021-12-20 14:11:39 +01:00
parent e3f4861c64
commit a94afb0a09

View File

@ -83,11 +83,11 @@ copyToThreadDirs2 <- function(iniSource, thread_prefix = "thread", numCores, exe
file.path(execPath,"muso.exe"))){ file.path(execPath,"muso.exe"))){
sapply(iniSource, function(x){ sapply(iniSource, function(x){
flatMuso(x, execPath, flatMuso(x, execPath,
directory=file.path("tmp", paste0(thread_prefix,"_1"),tools::file_path_sans_ext(basename(x)),""), d =TRUE) directory=file.path("tmp", (thread_prefix),tools::file_path_sans_ext(basename(x)),""), d =TRUE)
file.copy(executable, file.copy(executable,
file.path("tmp", paste0(thread_prefix,"_1"),tools::file_path_sans_ext(basename(x)))) file.path("tmp", (thread_prefix),tools::file_path_sans_ext(basename(x))))
tryCatch(file.copy(file.path(execPath,"cygwin1.dll"), tryCatch(file.copy(file.path(execPath,"cygwin1.dll"),
file.path("tmp", paste0(thread_prefix,"_1"),tools::file_path_sans_ext(basename(x)))), file.path("tmp", (thread_prefix),tools::file_path_sans_ext(basename(x)))),
error = function(e){"If you are in Windows..."}) error = function(e){"If you are in Windows..."})
}) })
sapply(2:numCores,function(thread){ sapply(2:numCores,function(thread){
@ -176,7 +176,6 @@ multiSiteCalib <- function(measurements,
} }
, error = function(e){ , error = function(e){
# browser()
sink("error.txt") sink("error.txt")
print(e) print(e)
sink() sink()