Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lars Dalby
almass
Commits
367181cb
Commit
367181cb
authored
Jan 04, 2019
by
LDalby
Browse files
Make file names reflect current scenario
parent
e15317c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Grendel/collect-results-scenario_02.R
View file @
367181cb
# Collect results from
parameter fitting
# Collect results from
maize availability scenario
# Author: Lars Dalby
# Date:
12 Aug
201
8
# Date:
4 Jan
201
9
# Short script to combine the results form mulitple runs into one file and
# write that to a safe place on Grendel.
...
...
@@ -45,13 +45,13 @@ path(path_to_dirs, glue::glue("WD{suffix}"), "Results", numbers_file_name) %>%
dest_dir
<-
"/home/ldalby/workspace/Goose/Scenarios/Results/"
res_file_name
<-
glue
::
glue
(
"{args}_
scenario
-results_{Sys.Date()}.fst"
)
res_file_name
<-
glue
::
glue
(
"{args}_
maize-availability
-results_{Sys.Date()}.fst"
)
fst
::
write_fst
(
all_res
,
path
=
path
(
dest_dir
,
res_file_name
))
grain_file_name
<-
glue
::
glue
(
"{args}_
scenario
-grain-distributions_{Sys.Date()}.fst"
)
grain_file_name
<-
glue
::
glue
(
"{args}_
maize-availability
-grain-distributions_{Sys.Date()}.fst"
)
fst
::
write_fst
(
all_grain
,
path
=
path
(
dest_dir
,
grain_file_name
))
numbers_file_name
<-
glue
::
glue
(
"{args}_
scenario
-goose-numbers_{Sys.Date()}.fst"
)
numbers_file_name
<-
glue
::
glue
(
"{args}_
maize-availability
-goose-numbers_{Sys.Date()}.fst"
)
fst
::
write_fst
(
all_numbers
,
path
=
path
(
dest_dir
,
numbers_file_name
))
vers_path
<-
path
(
"/scratch"
,
args
,
"WD01"
,
"almass-version.txt"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment