From 470aa52ff96ab9c9923b010e3f96ba3f472ce9f4 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Thu, 29 Aug 2024 10:56:46 +0200 Subject: [PATCH] use the proper check from JU [this includes checking for the gain now, which probably was ommitted before since the gain file rarely changes and always exists] --- dap/algos/jfdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dap/algos/jfdata.py b/dap/algos/jfdata.py index 92bea4d..bd2fa1e 100644 --- a/dap/algos/jfdata.py +++ b/dap/algos/jfdata.py @@ -35,8 +35,8 @@ class JFData: def process(self, image, metadata, double_pixels): data = self.ju_stream_adapter.process(image, metadata, double_pixels=double_pixels) - # the pedestal file is loaded in process(), this check needs to be afterwards - if not self.ju_stream_adapter.handler.pedestal_file: + # pedestal and gain files are loaded in process(), this check needs to be afterwards + if not self.ju_stream_adapter.handler.can_convert(): return None data = np.ascontiguousarray(data)