Skip to content

Commit

Permalink
Merge pull request #130 from orichters/master
Browse files Browse the repository at this point in the history
switch upload to rse folder to NPi
  • Loading branch information
orichters authored Mar 4, 2025
2 parents c8a5342 + fe4e3d4 commit c93b90c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion R/loopRuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ loopRuns <- function(mydir, user = NULL, colors = TRUE, sortbytime = TRUE) {
cat(underline(paste(coltitles, collapse = colSep)), "\n")
for (i in mydir) {
status <- try(getRunStatus(i, user = user))
if (! file.exists(paste0(i, "/", grep("^config.*|^log.txt$", dir(i), value = TRUE)[1])) && status[["jobInSLURM"]] == "no") next
if (! file.exists(paste0(i, "/", grep("^config.*|^log.txt$", dir(i), value = TRUE)[1])) && status[["jobInSLURM"]] == "no") {
cat(paste(i, "skipped.\n"))
next
}
if (inherits(status, "try-error")) {
cat(basename(i), "skipped because of error\n")
next
Expand Down
4 changes: 2 additions & 2 deletions R/modeltests.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ evaluateRuns <- function(model, # nolint: cyclocomp_linter.
message("Changed to ", normalizePath("."))
# Use the fulldata.gdx of a successful SSP2-NPi-AMT to update the gdx on the
# RSE server that is used for testing convGDX2MIF
if (grepl("SSP2-PkBudg650-AMT", rownames(grsi)) && grsi[, "Conv"] %in% c("converged", "converged (had INFES)")) {
if (grepl("SSP2-NPi-AMT", rownames(grsi)) && grsi[, "Conv"] %in% c("converged", "converged (had INFES)")) {
gdxOnRseServer <- paste0("rse@rse.pik-potsdam.de:/webservice/data/example/",
"remind2_test-convGDX2MIF_SSP2-PkBudg650-AMT.gdx")
"remind2_test-convGDX2MIF_SSP2-NPi-AMT.gdx")
message(paste("Updating the gdx on the RSE server", gdxOnRseServer, "with the fulldata.gdx of", rownames(grsi)))
system(paste("rsync -e ssh -av fulldata.gdx", gdxOnRseServer))
}
Expand Down

0 comments on commit c93b90c

Please sign in to comment.