Skip to content
Snippets Groups Projects
Commit c1d0da4c authored by Steffen Hauf's avatar Steffen Hauf
Browse files

Remove obsolete test script

parent d3930db0
No related branches found
No related tags found
1 merge request!56Handle multiple detectors of the same type for one instrument, add convenience scripts
...@@ -47,7 +47,5 @@ while True: ...@@ -47,7 +47,5 @@ while True:
r = " | ".join(r) r = " | ".join(r)
print(r+"\r", end=' ', flush=True) print(r+"\r", end=' ', flush=True)
sleep(10) sleep(10)
break
import sys
import urllib.parse
import zmq
con = zmq.Context()
socket = con.socket(zmq.REQ)
con = socket.connect("tcp://max-exfl016:5555")
if sys.argv[1] == "correct":
msg = "','".join(["correct", "11581", "SASE1", "FXE", "201701", "2052", "373", "1"])
# msg = "','".join(["correct", "20199", "SASE1", "FXE", "201831", "900037", "229"])
if sys.argv[1] == "dark":
msg = "','".join(["dark", "20829", "SASE1", "SPB", "201930", "900062", "(\"run-high\", \"264\")", "(\"run-med\", \"265\")", "(\"run-low\", \"266\")"])
if sys.argv[1] == "upload-yaml":
yaml = """
SPB:
AGIPD:
inset: AGIPD
calfile: foo
mem-cells: 176
blc-noise: yes
blc-noise-threshold: 100
instance: AGIPD1M1
JUNGFRAU:
inset: DA02
calfile: xxx
FXE:
LPD:
inset: LPD
calfile: xxx
non-linear-gain: yes
"""
msg = "','".join(["upload-yaml", "SASE1", "SPB", "201831", "900039", urllib.parse.quote_plus(yaml)])
socket.send("['{}']".format(msg).encode())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment