feat/enhance-gui #118
Dismiss Review
Are you sure you want to dismiss this review?
Labels
Clear labels
issue::not confirmed
issue::not reproducible
issue::reproducible
priority::critical
priority::needed
priority::nice to have
scope::backend
scope::frontend
stage::in development
stage::on hold
stage::pre_release
stage::ready for review
stage::selected for development
stage::weekly backlog
type::bug
type::discussion
type::doc
type::feature
type::improvement
type::test
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Used if an issue has not yet been confirmed by a developer
Used if an issue is not reproducible
Used if a developer was able to reproduce the issue
Should be done as soon as possible
An important update to the code base
Not really needed but a good improvement
An issue regarding the backend services
An issue regarding the user-facing services
This issue is currently being worked on
Something is blocking the development
For issues that have been merged into a pre-release branch and are waiting for their release.
For issues that have been resolved and are ready for review
This issue has been selected for development but has not been scheduled yet
This issue has been selected for development for the next development cycle
It's a bug!
A discussion is wanted/needed
Improvements to the documentation
A new feature
Neither a feature nor a bug but an improvement to the code base
Missing tests or improvements to the test suite
Something is not working
This issue or pull request already exists
New feature
Need some help
Something is wrong
More information is needed
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
acerbo_a (acerbo_a)
bec-gitea
celcer_t (celcer_t)
debenjak_l (debenjak_l)
diaz (diaz)
divall_e (divall_e)
guizar_m (guizar_m)
haghta_s (haghta_s)
holler (holler)
lombosi_c (lombosi_c)
menzel (menzel)
perl_d (perl_d)
usov_i (usov_i)
wakonig_k (wakonig_k)
wang_x1 (wang_x1)
wyzula_j (wyzula_j)
zamofing_t (zamofing_t)
Clear assignees
No Assignees
wyzula_j
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bec/csaxs_bec#118
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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?