-
Notifications
You must be signed in to change notification settings - Fork 37
/
workflow.yaml
40 lines (39 loc) · 1.56 KB
/
workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Note that if you are working on the analysis development locally, i.e. outside
# of the REANA platform, you can proceed as follows:
#
# $ cd reana-demo-worldpopulation
# $ mkdir -p yadage-local-run/yadage-inputs
# $ cd yadage-local-run
# $ cp -a ../code ../data yadage-inputs
# $ yadage-run . ../workflow/yadage/workflow.yaml \
# -p notebook=code/worldpopulation.ipynb \
# -p input_file=data/World_historical_and_predicted_populations_in_percentage.csv \
# -p region=Africa \
# -p year_min=1500 \
# -p year_max=2012 \
# -d initdir=`pwd`/yadage-inputs
# $ firefox worldpopulation/plot.png
stages:
- name: worldpopulation
dependencies: [init]
scheduler:
scheduler_type: 'singlestep-stage'
parameters:
notebook: {step: init, output: notebook}
region: {step: init, output: region}
year_min: {step: init, output: year_min}
year_max: {step: init, output: year_max}
input_file: {step: init, output: input_file}
outputfile: '{workdir}/plot.png'
step:
process:
process_type: 'string-interpolated-cmd'
cmd: 'papermill "{notebook}" /dev/null -p input_file "{input_file}" -p region "{region}" -p year_min "{year_min}" -p year_max "{year_max}" -p output_file "{outputfile}"'
publisher:
publisher_type: 'frompar-pub'
outputmap:
outputfile: outputfile
environment:
environment_type: 'docker-encapsulated'
image: 'docker.io/reanahub/reana-env-jupyter'
imagetag: '2.0.0'