feat/enhance-gui #118

Merged
wyzula_j merged 5 commits from feat/enhance-gui into main 2026-03-11 22:08:06 +01:00
Owner

GUI enhanced for flomni setup. Tested already with @holler , has to be merged after #157

GUI enhanced for flomni setup. Tested already with @holler , has to be merged after #157
wyzula_j added 29 commits 2025-12-12 15:04:03 +01:00
wip toggle for camera running works both directions
CI for csaxs_bec / test (push) Has been cancelled
634a1c2926
wip delete flomni calculated
CI for csaxs_bec / test (push) Successful in 1m23s
490ef32bb8
wip toggles working
CI for csaxs_bec / test (push) Successful in 1m18s
128839322b
wip added publish of params
CI for csaxs_bec / test (push) Successful in 1m24s
23dc98cb38
final adjustments in gui device and fitting
CI for csaxs_bec / test (push) Successful in 1m24s
0ad7a3fa41
wip fixed dev in x_ray_eye
CI for csaxs_bec / test (push) Successful in 1m23s
860daeacba
wip refactor runtime enums and flags from qt
CI for csaxs_bec / test (push) Successful in 1m21s
1a105092df
first test of gui and xray script
CI for csaxs_bec / test (push) Successful in 1m25s
2020a76536
added fsh command for omny
CI for csaxs_bec / test (push) Successful in 1m24s
0479aefdb0
replaced all epics put with direct gui access
CI for csaxs_bec / test (push) Successful in 1m22s
080999cd8f
removed all epics calls in script and minor fixes
CI for csaxs_bec / test (push) Successful in 1m29s
2e9f426b61
removed Epics communication, just a signal device now
CI for csaxs_bec / test (push) Successful in 1m25s
68517d2a52
renamed device of alignment (not mention epics anymore)
CI for csaxs_bec / test (push) Successful in 1m24s
237111d501
tests and fixes
CI for csaxs_bec / test (push) Failing after 1m1s
cf3db9fb36
final fixes
CI for csaxs_bec / test (push) Failing after 56s
0ef5b69f5c
fix(x_ray_align): cleanup of commented code
CI for csaxs_bec / test (push) Failing after 1m3s
5e61171b2b
fix(x_ray_align): cleanup of commented code 2
CI for csaxs_bec / test (push) Failing after 1m1s
CI for csaxs_bec / test (pull_request) Failing after 1m3s
ab2c297368
wyzula_j self-assigned this 2025-12-12 15:04:10 +01:00
wyzula_j force-pushed feat/enhance-gui from ab2c297368 to 2c877e2372 2025-12-12 15:16:18 +01:00 Compare
wyzula_j force-pushed feat/enhance-gui from 2c877e2372 to 3d73b0a160 2025-12-16 00:23:18 +01:00 Compare
wyzula_j added 1 commit 2025-12-16 15:05:20 +01:00
wip webcam fix the stop
CI for csaxs_bec / test (pull_request) Failing after 1m24s
CI for csaxs_bec / test (push) Failing after 1m29s
59afe13cd5
wyzula_j force-pushed feat/enhance-gui from 59afe13cd5 to 3d73b0a160 2025-12-16 15:11:36 +01:00 Compare
bec_bl_push-gitea added 2 commits 2025-12-16 16:24:49 +01:00
set fixed on the script
CI for csaxs_bec / test (pull_request) Failing after 1m25s
CI for csaxs_bec / test (push) Failing after 1m27s
9cab880887
wyzula_j force-pushed feat/enhance-gui from 9cab880887 to 5a4b0fbb4c 2026-01-29 10:01:10 +01:00 Compare
bec_bl_push-gitea added 1 commit 2026-01-29 11:34:09 +01:00
wip adjusting to V3
CI for csaxs_bec / test (push) Failing after 1m25s
CI for csaxs_bec / test (pull_request) Failing after 1m27s
60286c8248
wyzula_j force-pushed feat/enhance-gui from 60286c8248 to 8b960d0365 2026-03-01 18:14:16 +01:00 Compare
wyzula_j force-pushed feat/enhance-gui from 8b960d0365 to cffc979858 2026-03-02 21:09:32 +01:00 Compare
wyzula_j force-pushed feat/enhance-gui from cffc979858 to 821917f7f8 2026-03-03 16:19:11 +01:00 Compare
wyzula_j added 1 commit 2026-03-04 10:46:10 +01:00
WIP transpose fix
CI for csaxs_bec / test (push) Failing after 1m55s
CI for csaxs_bec / test (pull_request) Failing after 1m55s
09425f7651
bec_bl_push-gitea added 1 commit 2026-03-04 14:18:34 +01:00
WIP gui final touch
CI for csaxs_bec / test (push) Failing after 1m51s
CI for csaxs_bec / test (pull_request) Failing after 1m58s
03e6cf3451
bec_bl_push-gitea added 1 commit 2026-03-04 14:24:25 +01:00
WIP comment how fitting dict is structured
CI for csaxs_bec / test (push) Failing after 1m52s
CI for csaxs_bec / test (pull_request) Failing after 1m52s
8808996c71
bec_bl_push-gitea added 1 commit 2026-03-04 15:40:25 +01:00
WIP added reading of fit
CI for csaxs_bec / test (pull_request) Failing after 1m52s
CI for csaxs_bec / test (push) Failing after 1m56s
db47f72c0e
wyzula_j force-pushed feat/enhance-gui from db47f72c0e to 749cf168e7 2026-03-11 16:31:46 +01:00 Compare
wyzula_j force-pushed feat/enhance-gui from 749cf168e7 to deaa469ce1 2026-03-11 16:50:46 +01:00 Compare
wyzula_j requested review from appel_c 2026-03-11 16:57:26 +01:00
wyzula_j requested review from wakonig_k 2026-03-11 16:57:26 +01:00
wyzula_j requested review from holler 2026-03-11 16:57:36 +01:00
wyzula_j requested review from perl_d 2026-03-11 16:57:42 +01:00
wyzula_j marked the pull request as ready for review 2026-03-11 16:58:56 +01:00
appel_c reviewed 2026-03-11 18:10:17 +01:00
appel_c left a comment
Owner

Comment for the Ophyd device.

Comment for the Ophyd device.
@@ -73,1 +23,4 @@
fit_params_x = Cpt(Signal, value=np.zeros((2, 3)))
fit_params_y = Cpt(Signal, value=np.zeros((2, 3)))
# Generate width_y_0 to width_y_10
Owner

I really think we should not use this type of syntax to create components. While this seems to work, it is difficult to read, and quite easy to overwrite an existing namespace in locals.

Please check DynamicDeviceComponent to easily create sub-devices. You will have an additional layer of nesting though, so other code may have to be adjusted aswell.

I really think we should not use this type of syntax to create components. While this seems to work, it is difficult to read, and quite easy to overwrite an existing namespace in locals. Please check DynamicDeviceComponent to easily create sub-devices. You will have an additional layer of nesting though, so other code may have to be adjusted aswell.
Author
Owner

I would prefer to use this syntax for this particular device, it is just temporary solution and will be replaced completely eventually. Without nesting it will be easier to refactor. The complete solution will not be based on Ophyd at all for final product.

I would prefer to use this syntax for this particular device, it is just temporary solution and will be replaced completely eventually. Without nesting it will be easier to refactor. The complete solution will not be based on Ophyd at all for final product.
wyzula_j marked this conversation as resolved
wakonig_k approved these changes 2026-03-11 20:59:25 +01:00
wakonig_k left a comment
Owner

there is still a lot of commented-out code that we can probably remove

there is still a lot of commented-out code that we can probably remove
@@ -993,3 +990,2 @@
with open(os.path.join(dir_path, "ptychotomoalign_Ay.txt"), "r") as file:
tomo_alignment_fit[1][0] = file.readline()
# with open(os.path.join(dir_path, "ptychotomoalign_Ay.txt"), "r") as file:
Owner

this should probably be removed... or is it kept for a reason?

this should probably be removed... or is it kept for a reason?
Author
Owner

this I am not sure if it is not there for some further reason

this I am not sure if it is not there for some further reason
wyzula_j marked this conversation as resolved
@@ -59,0 +45,4 @@
self.xeyegui = self.gui.flomni.new("XRayEye", object_name="xrayeye")
# start live
if not dev.cam_xeye.live_mode_enabled.get():
# dev.cam_xeye.live_mode = True
Owner

remove?

remove?
wyzula_j marked this conversation as resolved
@@ -98,2 +95,2 @@
#dev.cam_xeye.live_mode = False
self.gui.flomni.delete_all()
# dev.cam_flomni_overview.stop_live_mode()
# dev.cam_flomni_gripper.stop_live_mode()
Owner

remove?

remove?
wyzula_j marked this conversation as resolved
@@ -51,3 +51,1 @@
self.flomni.flomnigui_show_xeyealign()
if not dev.cam_xeye.live_mode:
dev.cam_xeye.live_mode = True
# self.flomni.flomnigui_show_xeyealign()
Owner

remove?

remove?
wyzula_j marked this conversation as resolved
@@ -119,2 +115,2 @@
self.flomni.flomnigui_show_xeyealign()
self.flomni.flomnigui_raise()
# self.flomni.flomnigui_show_xeyealign()
# self.flomni.flomnigui_raise()
Owner

remove?

remove?
wyzula_j marked this conversation as resolved
wyzula_j added 1 commit 2026-03-11 22:05:15 +01:00
refactor: commented code removed
CI for csaxs_bec / test (pull_request) Successful in 1m57s
CI for csaxs_bec / test (push) Successful in 1m55s
315a32d9de
wyzula_j merged commit 315a32d9de into main 2026-03-11 22:08:06 +01:00
wyzula_j deleted branch feat/enhance-gui 2026-03-11 22:08:06 +01:00
Sign in to join this conversation.
No Label
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/csaxs_bec#118