Adapt the order of ROI coordinates
This commit is contained in:
1 parent
4c628c88d2
commit
9deb4a3247
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -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 == "":
|
||||
|
||||
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user