From d9d79f3e87e1376a33ae916608413b08c8fca114 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 2 Aug 2024 14:55:37 +0200 Subject: [PATCH] more pythonic check --- dap/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)