Adapt the order of ROI coordinates

This commit is contained in:
usov_i 2020-04-23 11:15:39 +02:00
parent 4c628c88d2
commit 9deb4a3247
2 changed files with 5 additions and 5 deletions

View File

@ -480,12 +480,12 @@ selection_list = TextAreaInput()
def selection_button_callback():
selection = [
int(np.floor(frame_range.start)),
int(np.ceil(frame_range.end)),
int(np.floor(det_y_range.start)),
int(np.ceil(det_y_range.end)),
int(np.floor(det_x_range.start)),
int(np.ceil(det_x_range.end)),
int(np.floor(det_y_range.start)),
int(np.ceil(det_y_range.end)),
int(np.floor(frame_range.start)),
int(np.ceil(frame_range.end)),
]
if selection_list.value == "":

View File

@ -420,7 +420,7 @@ def box_int(file, box):
ddist = dat["ddist"]
# defining indices
x0, y0, xN, yN, fr0, frN = box
x0, xN, y0, yN, fr0, frN = box
# omega fit
om = dat["rot_angle"][fr0:frN]