forked from AbdourahamaneIssakaSani/crosscompute-mapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomate.yaml
100 lines (85 loc) · 2.18 KB
/
automate.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
crosscompute: 0.9.4
name: Make Map from World Bank Data
# name: Geographic Data Visualization
# slug: geo-data-visualization
description: Generate Colorful Maps to Visualize Global Data
version: 0.0.1
copyright:
text: "[Abdourahamane Issaka Sani](https://github.com/AbdourahamaneIssakaSani) @ 2024"
input:
variables:
- id: series_code
view: string
path: variables.dictionary
- id: value_column
view: string
path: variables.dictionary
- id: fig_title
view: string
path: variables.dictionary
- id: legend_text
view: string
path: variables.dictionary
- id: min_color
view: string
path: variables.dictionary
- id: max_color
view: string
path: variables.dictionary
- id: csv_file
view: file
path: data.csv
configuration:
mime-types:
- text/csv
templates:
- path: input.md
output:
variables:
- id: geographic_visualization
view: image
path: geographic_visualization.png
- id: download
view: link
path: geographic_visualization.png
templates:
- path: output.md
# TODO: conditional output based on the value of a variable
# batches are pre-defined runs with specific values set for each input variable
batches:
# case 0:
# folder sets values for input variables;
# folder contains an input subfolder;
# input subfolder contains files for the input variables
- folder: batches/standard
scripts:
- path: test.ipynb
log:
variables:
- id: info
view: markdown
path: info.md
templates:
- path: info.md
environment:
packages:
# id is the name of the package as defined in the package manager
# manager is the name of a package manager such as apt, dnf, npm, pip
- id: shapely
manager: pip
- id: geopandas
manager: pip
- id: matplotlib
manager: pip
- id: numpy
manager: pip
# buttons override the design of specific buttons
buttons:
# id specifies the name of the button to override;
# configuration sets the design of the button
- id: continue
configuration:
button-text: Generate Map
- id: back
configuration:
button-text: Volver