This commit is contained in:
2024-08-02 13:53:25 +02:00
parent 0d06b7b5ed
commit e5fc7b2750

View File

@ -90,15 +90,18 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host
except Exception as e:
print(f"({pulseid}) problem ({e}) to read peakfinder parameters file, worker : {worker}", flush=True)
if not zmq_socks.has_data():
continue
image, metadata = zmq_socks.get_data()
results = copy(metadata)
if results["shape"][0] == 2 and results["shape"][1] == 2:
if metadata["shape"] == [2, 2]: # this is used as marker for empty images
continue
results = metadata.copy()
pulseid = results.get("pulse_id", 0)
results.update(peakfinder_parameters)