fix(LamNI): open X-ray eye GUI widget in update_frame() if not already open #273

Merged
holler merged 1 commits from lamni_xrayeye_update_frame_gui_fix into main 2026-07-27 12:35:29 +02:00
Member

update_frame() (reached via lamni.leye_in() -> xrayeye_update_frame())
used self.gui (lamni.xeyegui) directly, but that's None until the widget
has been opened by lamnigui_show_xeyealign() -- which align() and
find_rotation_center() call first, but update_frame() never did. If it's
the first X-ray-eye call of a session, this raised
AttributeError: 'NoneType' object has no attribute 'on_live_view_enabled'.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

update_frame() (reached via lamni.leye_in() -> xrayeye_update_frame()) used self.gui (lamni.xeyegui) directly, but that's None until the widget has been opened by lamnigui_show_xeyealign() -- which align() and find_rotation_center() call first, but update_frame() never did. If it's the first X-ray-eye call of a session, this raised AttributeError: 'NoneType' object has no attribute 'on_live_view_enabled'. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
holler added 1 commit 2026-07-27 12:21:28 +02:00
fix(LamNI): open X-ray eye GUI widget in update_frame() if not already open
CI for csaxs_bec / test (push) Successful in 4m39s
CI for csaxs_bec / test (pull_request) Successful in 3m1s
90e0fe039d
update_frame() (reached via lamni.leye_in() -> xrayeye_update_frame())
used self.gui (lamni.xeyegui) directly, but that's None until the widget
has been opened by lamnigui_show_xeyealign() -- which align() and
find_rotation_center() call first, but update_frame() never did. If it's
the first X-ray-eye call of a session, this raised
AttributeError: 'NoneType' object has no attribute 'on_live_view_enabled'.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
holler merged commit 1db41baca7 into main 2026-07-27 12:35:29 +02:00
holler deleted branch lamni_xrayeye_update_frame_gui_fix 2026-07-27 12:35:29 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/csaxs_bec#273