Skip to content

Commit

Permalink
skip saving of registry in addExperiments if not required
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed May 11, 2021
1 parent 283c441 commit 23f5a98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/addExperiments.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ addExperiments = function(prob.designs = NULL, algo.designs = NULL, repls = 1L,
}
}

setkeyv(reg$defs, "def.id")
setkeyv(reg$status, "job.id")
saveRegistry(reg)
if (length(all.ids)) {
setkeyv(reg$defs, "def.id")
setkeyv(reg$status, "job.id")
saveRegistry(reg)
}
invisible(data.table(job.id = all.ids, key = "job.id"))
}

Expand Down

0 comments on commit 23f5a98

Please sign in to comment.