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
3a0dff9e
Commit
3a0dff9e
authored
5 years ago
by
David Klein
Browse files
Options
Downloads
Patches
Plain Diff
New input.gdx \n Subsequent runs: cosmetics
parent
e8c0a5a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!50
Adapt scripts for manually restarting subsequent runs to the new structure of start scripts. New input.gdx. Cosmetics
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/input.gdx
+0
-0
0 additions, 0 deletions
config/input.gdx
scripts/start/submit.R
+2
-3
2 additions, 3 deletions
scripts/start/submit.R
start.R
+3
-3
3 additions, 3 deletions
start.R
with
5 additions
and
6 deletions
config/input.gdx
+
0
−
0
View file @
3a0dff9e
No preview for this file type
This diff is collapsed.
Click to expand it.
scripts/start/submit.R
+
2
−
3
View file @
3a0dff9e
...
...
@@ -15,13 +15,12 @@
submit
<-
function
(
cfg
)
{
cat
(
" Creating results folder for"
,
cfg
$
title
,
"\n"
)
# Generate name of output folder and create the folder
date
<-
format
(
Sys.time
(),
"_%Y-%m-%d_%H.%M.%S"
)
cfg
$
results_folder
<-
gsub
(
":date:"
,
date
,
cfg
$
results_folder
,
fixed
=
TRUE
)
cfg
$
results_folder
<-
gsub
(
":title:"
,
cfg
$
title
,
cfg
$
results_folder
,
fixed
=
TRUE
)
# Create output folder
cat
(
" Creating results folder"
,
cfg
$
results_folder
,
"\n"
)
if
(
!
file.exists
(
cfg
$
results_folder
))
{
dir.create
(
cfg
$
results_folder
,
recursive
=
TRUE
,
showWarnings
=
FALSE
)
}
else
if
(
!
cfg
$
force_replace
)
{
...
...
@@ -51,7 +50,7 @@ submit <- function(cfg) {
# Change to run folder
setwd
(
cfg
$
results_folder
)
on.exit
(
setwd
(
cfg
$
remind_folder
))
# send prepare_and_run.R to cluster
cat
(
" Executing prepare_and_run.R for"
,
cfg
$
results_folder
,
"\n"
)
if
(
cfg
$
slurmConfig
==
"direct"
)
{
...
...
This diff is collapsed.
Click to expand it.
start.R
+
3
−
3
View file @
3a0dff9e
...
...
@@ -162,8 +162,8 @@ for (scen in rownames(scenarios)) {
submit
(
cfg
)
}
else
{
cat
(
" Waiting for"
,
scenarios
[
scen
,
'path_gdx_ref'
]
,
"\n"
)
}
}
if
(
!
identical
(
cfg
$
subsequentruns
,
character
(
0
)))
cat
(
" Subsequent runs:"
,
cfg
$
subsequentruns
,
"\n"
)
}
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