use the boolean pixel_mask_pf

This commit is contained in:
2024-08-02 16:11:57 +02:00
parent 88f881fffd
commit ca3b42a797
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ def calc_mask_pixels(data, pixel_mask_pf):
if pixel_mask_pf is None: if pixel_mask_pf is None:
return return
data[pixel_mask_pf == 0] = np.nan #TODO: boolean mask data[~pixel_mask_pf] = np.nan

View File

@ -201,7 +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
data[pixel_mask_pf == 0] = np.NaN #TODO: boolean mask data[~pixel_mask_pf] = np.nan
else: else:
data = image data = image