Skip to content
Snippets Groups Projects
Commit a2139cc4 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Filter configuration feedback for the selected action, instrument and detector

parent e304a32d
No related branches found
No related tags found
1 merge request!801Fix update_config to work with non-AGIPD and add REMI
......@@ -257,7 +257,7 @@ def main():
print("-" * 80)
pyaml = yaml.dump(new_conf, default_flow_style=False)
print(f"Sending the following update:\n {pyaml}")
print(f"# Sending the following update:\n{pyaml}")
print("-" * 80)
con = zmq.Context()
socket = con.socket(zmq.REQ)
......@@ -274,8 +274,15 @@ def main():
])
socket.send(f"['{msg}']".encode())
resp = socket.recv_multipart()[0]
print("Configuration now in place is:")
print(resp.decode())
print("# Configuration now in place is:")
total_config = yaml.safe_load(resp.decode())
print(yaml.dump({
action: {instrument: {
karabo_id: total_config[action][instrument][karabo_id]
}}
}, default_flow_style=False))
if __name__ == '__main__':
......
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