File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ metadata:
9
9
workflows.diamond.ac.uk/parameter-schema : |
10
10
{{- .Files.Get "schema/dpcSchema.json" | nindent 6 }}
11
11
workflows.diamond.ac.uk/ui-schema : |
12
- {{- .Files.Get "schema/dpcUISchema .json" | nindent 6 }}
12
+ {{- .Files.Get "schema/dpcUiSchema .json" | nindent 6 }}
13
13
spec :
14
14
entrypoint : dpc
15
15
arguments :
@@ -19,13 +19,24 @@ spec:
19
19
configMapKeyRef :
20
20
name : sessionspaces
21
21
key : data_directory
22
+ volumeClaimTemplates :
23
+ - metadata :
24
+ name : tmp
25
+ spec :
26
+ accessModes :
27
+ - ReadWriteOnce
28
+ resources :
29
+ requests :
30
+ storage : 1Gi
31
+ storageClassName : netapp
22
32
templates :
23
33
- name : dpc-mount-files
24
34
script :
25
35
image : gitlab.diamond.ac.uk:5050/i14/i14_utility/dpc:v0.1
26
36
command : [bash]
27
37
source : |
28
38
echo '{{ .Files.Get "notebooks/dpc_autoprocess3.ipynb" | b64enc }}' | base64 -d > /tmp/notebook.ipynb
39
+ ls /tmp
29
40
volumeMounts :
30
41
- name : tmp
31
42
mountPath : /tmp
@@ -35,19 +46,20 @@ spec:
35
46
- name : outputFolder
36
47
value : /tmp/output
37
48
- name : singleFirst
38
- value : 1
49
+ value : 280793
39
50
script :
40
51
image : gitlab.diamond.ac.uk:5050/i14/i14_utility/dpc:v0.1
41
52
command : [bash]
42
53
source : |
43
54
python -m papermill /tmp/notebook.ipynb /tmp/notebook-parametrized.ipynb \
44
- -p visitDir '{{`{{workflow.parameters.visitdir}}`}}' \
45
- -p outputFolder '{{`{{inputs.parameters.outputFolder}}`}}' \
46
- -p singleFirst '{{`{{inputs.parameters.singleFirst}}`}}'
55
+ -p inpath '{{`{{workflow.parameters.visitdir}}`}}'/nexus/i14-'{{`{{inputs.parameters.singleFirst}}`}}'.nxs \
56
+ -p outpath '{{`{{inputs.parameters.outputFolder}}`}}'
47
57
python -m jupyter nbconvert --execute --allow-errors --to html --output notebook --output-dir /tmp /tmp/notebook-parametrized.ipynb
48
58
volumeMounts :
49
59
- name : session
50
60
mountPath : " {{`{{workflow.parameters.visitdir}}`}}"
61
+ - name : tmp
62
+ mountPath : /tmp
51
63
outputs :
52
64
artifacts :
53
65
- name : dpc
You can’t perform that action at this time.
0 commit comments