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]

This commit is contained in:
2024-08-29 10:56:46 +02:00
parent cc0113507b
commit 470aa52ff9

View File

@ -35,8 +35,8 @@ class JFData:
def process(self, image, metadata, double_pixels): def process(self, image, metadata, double_pixels):
data = self.ju_stream_adapter.process(image, metadata, double_pixels=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 # pedestal and gain files are loaded in process(), this check needs to be afterwards
if not self.ju_stream_adapter.handler.pedestal_file: if not self.ju_stream_adapter.handler.can_convert():
return None return None
data = np.ascontiguousarray(data) data = np.ascontiguousarray(data)