added todo notes

This commit is contained in:
2024-08-02 13:16:09 +02:00
parent 1402b08060
commit 6af0166f07
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import numpy as np
def calc_radial_integration(results, data, keep_pixels, pixel_mask_pf, center_radial_integration, r_radial_integration):
if keep_pixels is None and pixel_mask_pf is not None:
keep_pixels = (pixel_mask_pf != 0)
keep_pixels = (pixel_mask_pf != 0) #TODO: boolean mask
if center_radial_integration is None:
center_radial_integration = [

View File

@ -182,7 +182,7 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host
# make all masked pixels values nans
if pixel_mask_pf is not None:
pfdata[pixel_mask_pf != 1] = np.nan
pfdata[pixel_mask_pf != 1] = np.nan #TODO: boolean mask
calc_apply_threshold(results, pfdata) # changes pfdata in place
calc_roi(results, pfdata, pixel_mask_pf)
@ -216,7 +216,7 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host
forceSendVisualisation = True
data_summed = None
n_aggregated_images = 1
data[pixel_mask_pf == 0] = np.NaN
data[pixel_mask_pf == 0] = np.NaN #TODO: boolean mask
else:
data = image