Adapt the order of ROI coordinates
This commit is contained in:
parent
4c628c88d2
commit
9deb4a3247
@ -480,12 +480,12 @@ selection_list = TextAreaInput()
|
|||||||
|
|
||||||
def selection_button_callback():
|
def selection_button_callback():
|
||||||
selection = [
|
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.floor(det_x_range.start)),
|
||||||
int(np.ceil(det_x_range.end)),
|
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 == "":
|
if selection_list.value == "":
|
||||||
|
@ -420,7 +420,7 @@ def box_int(file, box):
|
|||||||
ddist = dat["ddist"]
|
ddist = dat["ddist"]
|
||||||
|
|
||||||
# defining indices
|
# defining indices
|
||||||
x0, y0, xN, yN, fr0, frN = box
|
x0, xN, y0, yN, fr0, frN = box
|
||||||
|
|
||||||
# omega fit
|
# omega fit
|
||||||
om = dat["rot_angle"][fr0:frN]
|
om = dat["rot_angle"][fr0:frN]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user