@@ -41,39 +41,25 @@ spec:
41
41
templates :
42
42
- name : mount-files
43
43
script :
44
- image : ghcr.io/diamondlightsource/magnetic-materials-workflows:0.1 .0-rc3
44
+ image : ghcr.io/diamondlightsource/magnetic-materials-workflows:0.2 .0-rc1
45
45
command : [bash]
46
46
source : |
47
47
echo '{{ .Files.Get "notebooks/msmapper_notebook.ipynb" | b64enc }}' | base64 -d > /tmp/notebook.ipynb
48
- echo '{{ .Files.Get "notebooks/requirements.txt" | b64enc }}' | base64 -d > /tmp/requirements.txt
49
- volumeMounts :
50
- - name : tmp
51
- mountPath : /tmp
52
- - name : download-msmapper
53
- script :
54
- image : docker.io/curlimages/curl
55
- command : [bash]
56
- source : |
57
- mkdir /tmp/msmapper
58
- curl https://alfred.diamond.ac.uk/MSMapper/master/builds-snapshot/MSMapper-1.9.0.v20250205-1441-linux.x86_64.zip -o /tmp/msmapper/archive.zip
59
- unzip -n /tmp/msmapper/archive.zip -d /tmp/msmapper
60
48
volumeMounts :
61
49
- name : tmp
62
50
mountPath : /tmp
63
51
- name : convert-notebook
64
52
script :
65
- image : ghcr.io/diamondlightsource/magnetic-materials-workflows:0.1 .0-rc3
53
+ image : ghcr.io/diamondlightsource/magnetic-materials-workflows:0.2 .0-rc1
66
54
command : [bash]
67
55
source : |
68
- python -m venv /tmp/venv
69
- /tmp/venv/bin/pip install -r /tmp/requirements.txt
70
- /tmp/venv/bin/pip install --upgrade git+https://github.com/DiamondLightSource/i16_msmapper.git
71
- /tmp/venv/bin/python -m ipykernel install --prefix=/tmp/venv --name=venv
72
- /tmp/venv/bin/python -m papermill /tmp/notebook.ipynb /tmp/notebook.ipynb \
56
+ python -m pip install --upgrade git+https://github.com/DiamondLightSource/i16_msmapper.git
57
+ python -m ipykernel install --prefix=/tmp/venv --name=venv
58
+ python -m papermill /tmp/notebook.ipynb /tmp/notebook.ipynb \
73
59
-p datadir "{{`{{ workflow.parameters.visitdir }}`}}"
74
60
-p inpath "{{`{{ workflow.parameters.inpath }}`}}" \
75
61
-p outpath "{{`{{ workflow.parameters.outpath }}`}}"
76
- /tmp/venv/bin/ jupyter nbconvert --execute --allow-errors --to html --output notebook --output-dir /tmp /tmp/notebook.ipynb
62
+ jupyter nbconvert --execute --allow-errors --to html --output notebook --output-dir /tmp /tmp/notebook.ipynb
77
63
volumeMounts :
78
64
- name : tmp
79
65
mountPath : /tmp
90
76
tasks :
91
77
- name : mount-files
92
78
template : mount-files
93
- - name : download-msmapper
94
- template : download-msmapper
95
79
- name : convert-notebook
96
80
template : convert-notebook
97
- dependencies : [mount-files, download-msmapper ]
81
+ dependencies : [mount-files]
0 commit comments