-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeriveArrayElementCoordinates.cwl
105 lines (89 loc) · 2.41 KB
/
DeriveArrayElementCoordinates.cwl
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
101
102
103
104
105
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: Workflow
label: DeriveArrayElementCoordinates
doc: |-
Derive array element coordinates and archive
data generated in derivation process.
inputs:
- id: input
type: File
doc: |-
Input data.
- id: schema_input
type: File
doc: |-
Schema describing input data.
- id: schema
type: File
doc: |-
Schema describing model parameters.
outputs:
- id: parameter_derived
doc: |-
Telescope positions in CORSIKA system.
type: File
outputSource: assert_model_parameter/assertion_output
- id: log_assert_input
type: File[]
doc: |-
Log file from assertion of input data.
outputSource: assert_input_data/assertion_data
- id: log_derive_array_elements_coordinates
doc: |-
Log file from derivation of array element coordinates.
type: File[]
outputSource: derive_array_elements_coordinates/derivation_data
- id: log_assert_model_parameter
doc: |-
Log file from assertion of derived model parameter.
type: File[]
outputSource: assert_model_parameter/assertion_data
steps:
- id: assert_input_data
doc: |-
Assert input data using a schema file.
run: ./tools/assert_data.cwl
in:
name: {valueFrom: "assert_input_data"}
data: input
schema: schema_input
out:
- assertion_output
- assertion_data
- id: derive_array_elements_coordinates
doc: |-
Transform coordinates to system used
by simulation system.
run:
./tools/derive_array_elements_coordinates.cwl
in:
data: assert_input_data/assertion_output
out:
- model_parameter
- derivation_data
- id: assert_model_parameter
doc: |-
Assert derived model parameter using a schema file.
run: ./tools/assert_data.cwl
in:
name: {valueFrom: "assert_model_parameter"}
data: derive_array_elements_coordinates/model_parameter
schema: schema
out:
- assertion_output
- assertion_data
# - id: validate_array_elements_coordinates
# doc: |-
# Validate derived array element coordinates (e.g., through plotting)
# and generate validation report.
#
# - id: archive_data
# doc: |-
# Archive validation data and log files.
#
# - id: update_database
#
requirements:
SubworkflowFeatureRequirement: {}
StepInputExpressionRequirement: {}