removed useless copy
This commit is contained in:
@ -12,7 +12,7 @@ def calc_roi(results, data, roi_x1, roi_x2, roi_y1, roi_y2, pixel_mask_pf, thres
|
|||||||
results["roi_intensities_proj_x"] = []
|
results["roi_intensities_proj_x"] = []
|
||||||
|
|
||||||
for iRoi in range(len(roi_x1)):
|
for iRoi in range(len(roi_x1)):
|
||||||
data_roi = np.copy(data[roi_y1[iRoi]:roi_y2[iRoi], roi_x1[iRoi]:roi_x2[iRoi]])
|
data_roi = data[roi_y1[iRoi]:roi_y2[iRoi], roi_x1[iRoi]:roi_x2[iRoi]]
|
||||||
|
|
||||||
roi_results[iRoi] = np.nansum(data_roi)
|
roi_results[iRoi] = np.nansum(data_roi)
|
||||||
if threshold_value_choice == "NaN":
|
if threshold_value_choice == "NaN":
|
||||||
|
Reference in New Issue
Block a user