This commit is contained in:
2024-08-01 09:16:56 +02:00
parent 3924abcba4
commit 2facda5d07

View File

@ -13,7 +13,7 @@ def calc_peakfinder_analysis(results, data, pixel_mask_pf):
if k not in results: if k not in results:
return return
# to coordinates where position of first pixel/point is 0.5, 0.5 # to coordinates where position of first pixel/point is (0.5, 0.5)
x_beam = results["beam_center_x"] - 0.5 x_beam = results["beam_center_x"] - 0.5
y_beam = results["beam_center_y"] - 0.5 y_beam = results["beam_center_y"] - 0.5
@ -49,7 +49,7 @@ def calc_peakfinder_analysis(results, data, pixel_mask_pf):
number_of_spots = len(peak_list_x) number_of_spots = len(peak_list_x)
results["number_of_spots"] = number_of_spots results["number_of_spots"] = number_of_spots
# to coordinates where position of first pixel/point is 1, 1 # to coordinates where position of first pixel/point is (1, 1)
results["spot_x"] = [x + 0.5 for x in peak_list_x] results["spot_x"] = [x + 0.5 for x in peak_list_x]
results["spot_y"] = [y + 0.5 for y in peak_list_y] results["spot_y"] = [y + 0.5 for y in peak_list_y]
results["spot_intensity"] = copy(peak_list_value) #TODO: why is this copy needed? results["spot_intensity"] = copy(peak_list_value) #TODO: why is this copy needed?