added check for pixel_mask_pf being None

This commit is contained in:
2024-08-02 16:14:42 +02:00
parent eb39550983
commit f6c97e9749

View File

@ -201,6 +201,7 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host
forceSendVisualisation = True forceSendVisualisation = True
data_summed = None data_summed = None
n_aggregated_images = 1 n_aggregated_images = 1
if pixel_mask_pf is not None:
data[~pixel_mask_pf] = np.nan data[~pixel_mask_pf] = np.nan
else: else: