Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
remind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jerome Hilaire
remind
Commits
3e071962
Commit
3e071962
authored
5 years ago
by
David Klein
Browse files
Options
Downloads
Patches
Plain Diff
Facilitate the ex post manual start of subsequent runs.
parent
d34ae8da
No related branches found
No related tags found
1 merge request
!50
Adapt scripts for manually restarting subsequent runs to the new structure of start scripts. New input.gdx. Cosmetics
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/start/prepare_and_run.R
+1
-0
1 addition, 0 deletions
scripts/start/prepare_and_run.R
scripts/start/submit.R
+1
-2
1 addition, 2 deletions
scripts/start/submit.R
with
2 additions
and
2 deletions
scripts/start/prepare_and_run.R
+
1
−
0
View file @
3e071962
...
@@ -776,6 +776,7 @@ prepare_and_run <- function() {
...
@@ -776,6 +776,7 @@ prepare_and_run <- function() {
for
(
run
in
seq
(
1
,
length
(
cfg
$
subsequentruns
))){
for
(
run
in
seq
(
1
,
length
(
cfg
$
subsequentruns
))){
filetext
<-
paste0
(
filetext
,
"\n"
)
filetext
<-
paste0
(
filetext
,
"\n"
)
filetext
<-
paste0
(
filetext
,
"load('"
,
cfg
$
subsequentruns
[
run
],
".RData')\n"
)
filetext
<-
paste0
(
filetext
,
"load('"
,
cfg
$
subsequentruns
[
run
],
".RData')\n"
)
filetext
<-
paste0
(
filetext
,
"cfg$results_folder <- 'output/:title::date:'\n"
)
filetext
<-
paste0
(
filetext
,
"cat('"
,
cfg
$
subsequentruns
[
run
],
"')\n"
)
filetext
<-
paste0
(
filetext
,
"cat('"
,
cfg
$
subsequentruns
[
run
],
"')\n"
)
filetext
<-
paste0
(
filetext
,
"submit(cfg)\n"
)
filetext
<-
paste0
(
filetext
,
"submit(cfg)\n"
)
}
}
...
...
This diff is collapsed.
Click to expand it.
scripts/start/submit.R
+
1
−
2
View file @
3e071962
...
@@ -42,8 +42,7 @@ submit <- function(cfg) {
...
@@ -42,8 +42,7 @@ submit <- function(cfg) {
"prepare_and_run.R"
=
"scripts/start/prepare_and_run.R"
)
"prepare_and_run.R"
=
"scripts/start/prepare_and_run.R"
)
.copy.fromlist
(
filelist
,
cfg
$
results_folder
)
.copy.fromlist
(
filelist
,
cfg
$
results_folder
)
# remove config in main folder (after copying into results folder)
# Do not remove RData files from REMIND main folder because they are needed for manually restarting subsequent runs
file.remove
(
paste0
(
cfg
$
title
,
".RData"
))
# change to run folder
# change to run folder
setwd
(
cfg
$
results_folder
)
setwd
(
cfg
$
results_folder
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment