diff --git a/dap/worker.py b/dap/worker.py index b3fa95b..393998b 100644 --- a/dap/worker.py +++ b/dap/worker.py @@ -134,7 +134,7 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host data = ju_stream_adapter.process(image, metadata, double_pixels=double_pixels) # pedestal file is not in stream, skip this frame - if ju_stream_adapter.handler.pedestal_file is None or ju_stream_adapter.handler.pedestal_file == "": + if not ju_stream_adapter.handler.pedestal_file: continue data = np.ascontiguousarray(data)