feat/enhance-gui #118
Reference in New Issue
Block a user
Delete Branch "feat/enhance-gui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GUI enhanced for flomni setup. Tested already with @holler , has to be merged after #157
ab2c297368to2c877e23722c877e2372to3d73b0a16059afe13cd5to3d73b0a1609cab880887to5a4b0fbb4c60286c8248to8b960d03658b960d0365tocffc979858cffc979858to821917f7f8db47f72c0eto749cf168e7749cf168e7todeaa469ce1Comment 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_10I 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 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.
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:this should probably be removed... or is it kept for a reason?
this I am not sure if it is not there for some further reason
@@ -59,0 +45,4 @@self.xeyegui = self.gui.flomni.new("XRayEye", object_name="xrayeye")# start liveif not dev.cam_xeye.live_mode_enabled.get():# dev.cam_xeye.live_mode = Trueremove?
@@ -98,2 +95,2 @@#dev.cam_xeye.live_mode = Falseself.gui.flomni.delete_all()# dev.cam_flomni_overview.stop_live_mode()# dev.cam_flomni_gripper.stop_live_mode()remove?
@@ -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()remove?
@@ -119,2 +115,2 @@self.flomni.flomnigui_show_xeyealign()self.flomni.flomnigui_raise()# self.flomni.flomnigui_show_xeyealign()# self.flomni.flomnigui_raise()remove?