Skip to content

Commit cd3e816

Browse files
committed
Updating odin-jungfrau helm charts with defined ports, sensor sizes, etc
1 parent b822658 commit cd3e816

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

Charts/odin-jungfrau/config/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
sleep 5
55

66
# Start the IOC
7-
fastcs-odin ioc {{ .Values.pvPrefix }} --ip {{ .Values.detectorName }}-odin-server --port 8888
7+
fastcs-jungfrau ioc {{ .Values.pvPrefix }} --config /epics/ioc/jungfrau_9m.config --odin-ip {{ .Values.detectorName }}-odin-server --odin-port 8888

Charts/odin-jungfrau/deployment/fp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@
126126
"hdf": {
127127
"dataset": {
128128
"data": {
129-
"dims": [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
130-
"chunks": [1, {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
129+
"dims": [512, 1024],
130+
"chunks": [1, 512, 1024]
131131
}
132132
}
133133
}
134134
},
135135
{
136136
"jungfrau": {
137-
"endpoint": "{{ .Values.endpoint }}:{{ add 8000 .idx }}"
137+
"endpoint": "{{ .Values.endpoint }}:{{ add 31001 .idx }}"
138138
}
139139
}
140140
]
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22

3-
{{- $endpointFormat := (printf "tcp://%s-odin-data-%%d:%d" .Values.detectorName 10008) }}
3+
{{- $endpoints := list }}
4+
{{- range $i := until (int .Values.odinDataCount) }}
5+
{{- $endpoints = append $endpoints (printf "tcp://%s-odin-data-%d:10008" $.Values.detectorName $i) }}
6+
{{- end }}
47

58
/venv/bin/jungfrau_meta_writer \
69
--writer jungfrau_detector.JungfrauMetaWriter \
7-
--sensor-shape {{ .Values.sensorSizeX }} {{ .Values.sensorSizeY }} \
8-
--data-endpoints {{ include "odin-helm-charts.rangeJoin" (dict "separator" "," "format" $endpointFormat "count" .Values.odinDataCount ) }}
10+
--sensor-shape 512 1024 \
11+
--data-endpoints {{ join "," $endpoints }}

Charts/odin-jungfrau/deployment/odin-server.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ adapters = fp, mw
77
[tornado]
88
logging = error
99

10+
{{- $endpoints := list }}
11+
{{- range $i := until (int .Values.odinDataCount) }}
12+
{{- $endpoints = append $endpoints (printf "%s-odin-data-%d:10004" $.Values.detectorName $i) }}
13+
{{- end }}
14+
1015
[adapter.fp]
1116
module = odin_data.control.frame_processor_adapter.FrameProcessorAdapter
12-
{{- $endpointFormat := (printf "%s-odin-data-%%d:%d" .Values.detectorName 10004) }}
13-
endpoints = {{ include "odin-helm-charts.rangeJoin" (dict "separator" ", " "format" $endpointFormat "count" .Values.odinDataCount ) }}
17+
endpoints = {{ join ", " $endpoints }}
1418
update_interval = 0.2
1519

1620
[adapter.mw]

0 commit comments

Comments
 (0)