Merge branch 'main' into fix/socket-polling
CI for debye_bec / test (pull_request) Failing after 31s
CI for debye_bec / test (push) Failing after 30s

This commit is contained in:
hitz_s committed 2026-08-17 10:39:29 +02:00
commit 5eab54edca
15 files changed
+1911 -8

No files matched your search

+767
View File
@@ -0,0 +1,767 @@
[BECDockArea]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=false
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 3204 1782)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mode=creator
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=BEC - dock_area_0
workspace_is_locked=false
[BECDockArea.CDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.Waveform.dockWidgetScrollArea.qt_scrollarea_viewport.Waveform]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
auto_range_x=false
auto_range_y=false
baseSize=@Size(0 0)
color_palette=plasma
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0<\x80\x4\x95\x31\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x14Qt.ContextMenuPolicy\x94\x93\x94K\x1\x85\x94R\x94.)
cursor=@Variant(\0\0\0J\0\0)
curve_json="[\n {\n \"widget_class\": \"Curve\",\n \"gui_id\": \"Curve_2026_04_29_11_30_30_431209\",\n \"parent_id\": \"Waveform_2026_04_29_11_30_16_224705\",\n \"label\": \"nidaq-nidaq_smpl_abs\",\n \"color\": \"#6a00a8\",\n \"symbol\": null,\n \"symbol_color\": \"#6a00a8\",\n \"symbol_size\": 7,\n \"pen_width\": 3,\n \"pen_style\": \"solid\",\n \"source\": \"device\",\n \"signal\": {\n \"device\": \"nidaq\",\n \"signal\": \"nidaq_smpl_abs\",\n \"dap\": null,\n \"dap_oversample\": 1,\n \"dap_parameters\": null\n },\n \"scan_id\": null,\n \"scan_number\": null,\n \"current_x_mode\": null,\n \"parent_label\": null\n },\n {\n \"widget_class\": \"Curve\",\n \"gui_id\": \"Curve_2026_05_27_12_47_03_933237\",\n \"parent_id\": \"Waveform_2026_05_27_09_54_01_952387\",\n \"label\": \"nidaq-nidaq_smpl_fluo\",\n \"color\": \"#cc4977\",\n \"symbol\": null,\n \"symbol_color\": \"#cc4977\",\n \"symbol_size\": 7,\n \"pen_width\": 3,\n \"pen_style\": \"solid\",\n \"source\": \"device\",\n \"signal\": {\n \"device\": \"nidaq\",\n \"signal\": \"nidaq_smpl_fluo\",\n \"dap\": null,\n \"dap_oversample\": 1,\n \"dap_parameters\": null\n },\n \"scan_id\": null,\n \"scan_number\": null,\n \"current_x_mode\": null,\n \"parent_label\": null\n },\n {\n \"widget_class\": \"Curve\",\n \"gui_id\": \"Curve_2026_05_27_12_47_04_413384\",\n \"parent_id\": \"Waveform_2026_05_27_09_54_01_952387\",\n \"label\": \"nidaq-nidaq_ref_abs\",\n \"color\": \"#fdab33\",\n \"symbol\": null,\n \"symbol_color\": \"#fdab33\",\n \"symbol_size\": 7,\n \"pen_width\": 3,\n \"pen_style\": \"solid\",\n \"source\": \"device\",\n \"signal\": {\n \"device\": \"nidaq\",\n \"signal\": \"nidaq_ref_abs\",\n \"dap\": null,\n \"dap_oversample\": 1,\n \"dap_parameters\": null\n },\n \"scan_id\": null,\n \"scan_number\": null,\n \"current_x_mode\": null,\n \"parent_label\": null\n }\n]"
enable_fps_monitor=false
enable_popups=true
enable_side_panel=false
enable_toolbar=true
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x36\x80\x4\x95+\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\xeQt.FocusPolicy\x94\x93\x94K\0\x85\x94R\x94.)
geometry=@Rect(0 0 1565 1885)
inner_axes=true
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.InputMethodHint\x94\x93\x94K\0\x85\x94R\x94.)
invert_x=false
invert_y=false
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.LayoutDirection\x94\x93\x94K\0\x85\x94R\x94.)
legend_label_size=9
lock_aspect_ratio=false
max_dataset_size_mb=10
maximumSize=@Size(16777215 16777215)
minimal_crosshair_precision=3
minimumSize=@Size(0 0)
mouseTracking=false
outer_axes=false
signal_x=nidaq_energy
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
skip_large_dataset_check=false
skip_large_dataset_warning=false
statusTip=
tabletTracking=false
title=
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x39\x80\x4\x95.\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x11Qt.WindowModality\x94\x93\x94K\0\x85\x94R\x94.)
windowModified=false
windowOpacity=1
windowTitle=
x_grid=false
x_label=
x_limits=@Variant(\0\0\0\x1a\xc0jV)\xc1\x17\xb0\xc6@\xbfN\xb1N\b\xbd\x86)
x_log=false
x_mode=nidaq
y_grid=false
y_label=
y_limits=@Variant(\0\0\0\x1a\xc0\0\xc8\xfa\x1c\xf1\t\xfb@\"\xf1?\x1b<B\x7f)
y_log=false
[BECDockArea.CDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECQueue.dockWidgetScrollArea.qt_scrollarea_viewport.BECQueue]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
compact_view=false
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0<\x80\x4\x95\x31\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x14Qt.ContextMenuPolicy\x94\x93\x94K\x1\x85\x94R\x94.)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
expand_popup=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x36\x80\x4\x95+\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\xeQt.FocusPolicy\x94\x93\x94K\0\x85\x94R\x94.)
geometry=@Rect(0 0 1482 309)
hide_toolbar=false
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.InputMethodHint\x94\x93\x94K\0\x85\x94R\x94.)
label=BEC Queue
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.LayoutDirection\x94\x93\x94K\0\x85\x94R\x94.)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
tooltip=BEC Queue status
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x39\x80\x4\x95.\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x11Qt.WindowModality\x94\x93\x94K\0\x85\x94R\x94.)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.CDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECShell.dockWidgetScrollArea.qt_scrollarea_viewport.BECShell]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0<\x80\x4\x95\x31\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x14Qt.ContextMenuPolicy\x94\x93\x94K\x1\x85\x94R\x94.)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x36\x80\x4\x95+\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\xeQt.FocusPolicy\x94\x93\x94K\0\x85\x94R\x94.)
geometry=@Rect(0 0 703 920)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.InputMethodHint\x94\x93\x94K\0\x85\x94R\x94.)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.LayoutDirection\x94\x93\x94K\0\x85\x94R\x94.)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x39\x80\x4\x95.\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x11Qt.WindowModality\x94\x93\x94K\0\x85\x94R\x94.)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.CDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECStatusBox.dockWidgetScrollArea.qt_scrollarea_viewport.BECStatusBox]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
compact_view=false
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0<\x80\x4\x95\x31\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x14Qt.ContextMenuPolicy\x94\x93\x94K\x1\x85\x94R\x94.)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
expand_popup=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x36\x80\x4\x95+\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\xeQt.FocusPolicy\x94\x93\x94K\0\x85\x94R\x94.)
geometry=@Rect(0 0 703 922)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.InputMethodHint\x94\x93\x94K\0\x85\x94R\x94.)
label=BEC Servers
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.LayoutDirection\x94\x93\x94K\0\x85\x94R\x94.)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
tooltip=BEC servers health status
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x39\x80\x4\x95.\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x11Qt.WindowModality\x94\x93\x94K\0\x85\x94R\x94.)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.CDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.ScanControl.dockWidgetScrollArea.qt_scrollarea_viewport.ScanControl]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0<\x80\x4\x95\x31\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x14Qt.ContextMenuPolicy\x94\x93\x94K\x1\x85\x94R\x94.)
current_scan=xas_simple_scan
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x36\x80\x4\x95+\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\xeQt.FocusPolicy\x94\x93\x94K\0\x85\x94R\x94.)
geometry=@Rect(0 0 1482 1018)
hide_add_remove_buttons=false
hide_arg_box=false
hide_kwarg_boxes=false
hide_metadata=false
hide_optional_metadata=false
hide_scan_control_buttons=false
hide_scan_selection_combobox=false
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.InputMethodHint\x94\x93\x94K\0\x85\x94R\x94.)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.LayoutDirection\x94\x93\x94K\0\x85\x94R\x94.)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x39\x80\x4\x95.\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x11Qt.WindowModality\x94\x93\x94K\0\x85\x94R\x94.)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.CDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.ScanProgressBar.dockWidgetScrollArea.qt_scrollarea_viewport.ScanProgressBar]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0<\x80\x4\x95\x31\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x14Qt.ContextMenuPolicy\x94\x93\x94K\x1\x85\x94R\x94.)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x36\x80\x4\x95+\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\xeQt.FocusPolicy\x94\x93\x94K\0\x85\x94R\x94.)
geometry=@Rect(0 0 1482 472)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.InputMethodHint\x94\x93\x94K\0\x85\x94R\x94.)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0:\x80\x4\x95/\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x12Qt.LayoutDirection\x94\x93\x94K\0\x85\x94R\x94.)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
show_elapsed_time=true
show_remaining_time=true
show_source_label=true
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\tPyObject\0\0\0\0\x39\x80\x4\x95.\0\0\0\0\0\0\0\x8c\xePySide6.QtCore\x94\x8c\x11Qt.WindowModality\x94\x93\x94K\0\x85\x94R\x94.)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECStatusBox.dockWidgetScrollArea.qt_scrollarea_viewport.BECStatusBox]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
compact_view=false
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
expand_popup=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 339 1703)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
label=BEC Servers
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
tooltip=BEC servers health status
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.DataViewer.dockWidgetScrollArea.qt_scrollarea_viewport.DataViewer]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 699 1703)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=Data Viewer
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.LogPanel.dockWidgetScrollArea.qt_scrollarea_viewport.LogPanel]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
font_size=0
geometry=@Rect(0 0 779 903)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.Waveform.dockWidgetScrollArea.qt_scrollarea_viewport.Waveform]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
auto_range_x=false
auto_range_y=false
baseSize=@Size(0 0)
color_palette=plasma
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
curve_json="[\n {\n \"widget_class\": \"Curve\",\n \"gui_id\": \"Curve_2026_08_11_09_25_49_797558\",\n \"parent_id\": \"Waveform_2026_08_11_09_25_04_001169\",\n \"label\": \"nidaq-nidaq_smpl_abs\",\n \"color\": \"#6a00a8\",\n \"symbol\": null,\n \"symbol_color\": \"#6a00a8\",\n \"symbol_size\": 7,\n \"pen_width\": 3,\n \"pen_style\": \"solid\",\n \"source\": \"device\",\n \"signal\": {\n \"device\": \"nidaq\",\n \"signal\": \"nidaq_smpl_abs\",\n \"dap\": null,\n \"dap_oversample\": 1,\n \"dap_parameters\": null\n },\n \"scan_id\": null,\n \"scan_number\": null,\n \"current_x_mode\": null,\n \"parent_label\": null\n },\n {\n \"widget_class\": \"Curve\",\n \"gui_id\": \"Curve_2026_08_11_09_57_58_767211\",\n \"parent_id\": \"Waveform_2026_08_11_09_34_53_121282\",\n \"label\": \"nidaq-nidaq_ref_abs\",\n \"color\": \"#cc4977\",\n \"symbol\": null,\n \"symbol_color\": \"#cc4977\",\n \"symbol_size\": 7,\n \"pen_width\": 3,\n \"pen_style\": \"solid\",\n \"source\": \"device\",\n \"signal\": {\n \"device\": \"nidaq\",\n \"signal\": \"nidaq_ref_abs\",\n \"dap\": null,\n \"dap_oversample\": 1,\n \"dap_parameters\": null\n },\n \"scan_id\": null,\n \"scan_number\": null,\n \"current_x_mode\": null,\n \"parent_label\": null\n }\n]"
enable_fps_monitor=false
enable_popups=true
enable_side_panel=false
enable_toolbar=true
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 1023 1703)
inner_axes=true
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
invert_x=false
invert_y=false
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
legend_label_size=9
lock_aspect_ratio=false
max_dataset_size_mb=10
maximumSize=@Size(16777215 16777215)
minimal_crosshair_precision=3
minimumSize=@Size(0 0)
mouseTracking=false
outer_axes=false
signal_x=nidaq_energy
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
skip_large_dataset_check=false
skip_large_dataset_warning=false
statusTip=
tabletTracking=false
title=
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
x_grid=false
x_label=
x_limits=@Variant(\0\0\0\x1a\xc0\xab\n\xb5-\xe0\x1b\x90@\xf9\xa8\xd5\xa9o\0\xdc)
x_log=false
x_mode=nidaq
y_grid=false
y_label=
y_limits=@Variant(\0\0\0\x1a\xc0*\x82\x66\xfaT+b@!\x80\xbf\xfaT+b)
y_log=false
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECQueue.dockWidgetScrollArea.qt_scrollarea_viewport.BECQueue]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
compact_view=false
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
expand_popup=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 1095 322)
hide_toolbar=false
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
label=BEC Queue
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
tooltip=BEC Queue status
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECShell.dockWidgetScrollArea.qt_scrollarea_viewport.BECShell]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 243 430)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.BECStatusBox.dockWidgetScrollArea.qt_scrollarea_viewport.BECStatusBox]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
compact_view=false
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
expand_popup=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 243 430)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
label=BEC Servers
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
tooltip=BEC servers health status
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.ScanControl.dockWidgetScrollArea.qt_scrollarea_viewport.ScanControl]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
allowed_scans=acquire, xas_advanced_scan, xas_advanced_scan_with_xrd, xas_simple_scan, xas_simple_scan_with_xrd
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
current_scan=xas_advanced_scan
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 777 615)
hide_add_remove_buttons=false
hide_arg_box=false
hide_kwarg_boxes=false
hide_metadata=false
hide_optional_metadata=false
hide_scan_control_buttons=false
hide_scan_selection_combobox=false
hide_scan_selector_settings_button=false
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.ScanControlXAS.dockWidgetScrollArea.qt_scrollarea_viewport.ScanControlXAS]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
allowed_scans=xas_simple_scan, xas_simple_scan_with_xrd, xas_advanced_scan, xas_advanced_scan_with_xrd
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
current_scan=xas_simple_scan
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 1095 970)
hide_add_remove_buttons=false
hide_arg_box=false
hide_kwarg_boxes=false
hide_metadata=false
hide_optional_metadata=false
hide_scan_control_buttons=false
hide_scan_selection_combobox=false
hide_scan_selector_settings_button=false
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.ads%3A%3ACDockManager.ads%3A%3ACDockSplitter.ads%3A%3ACDockSplitter.ads%3A%3ACDockAreaWidget.ScanProgressBar.dockWidgetScrollArea.qt_scrollarea_viewport.ScanProgressBar]
acceptDrops=false
accessibleDescription=
accessibleIdentifier=
accessibleName=
autoFillBackground=true
baseSize=@Size(0 0)
contextMenuPolicy=@Variant(\0\0\0\x7f\0\0\0\x16Qt::ContextMenuPolicy\0\0\0\0\x1)
cursor=@Variant(\0\0\0J\0\0)
enabled=true
focusPolicy=@Variant(\0\0\0\x7f\0\0\0\x10Qt::FocusPolicy\0\0\0\0\0)
geometry=@Rect(0 0 1095 325)
inputMethodHints=@Variant(\0\0\0\x7f\0\0\0\x14Qt::InputMethodHint\0\0\0\0\0)
layoutDirection=@Variant(\0\0\0\x7f\0\0\0\x14Qt::LayoutDirection\0\0\0\0\0)
maximumSize=@Size(16777215 16777215)
minimumSize=@Size(0 0)
mouseTracking=false
show_elapsed_time=false
show_remaining_time=false
show_source_label=false
sizeIncrement=@Size(0 0)
sizePolicy=@Variant(\0\0\0K\0\0\0U)
statusTip=
tabletTracking=false
toolTip=
toolTipDuration=-1
whatsThis=
windowFilePath=
windowModality=@Variant(\0\0\0\x7f\0\0\0\x13Qt::WindowModality\0\0\0\0\0)
windowModified=false
windowOpacity=1
windowTitle=
[BECDockArea.dockSettingsAction]
autoRepeat=true
checkable=false
checked=false
enabled=true
iconText=Dock settings
iconVisibleInMenu=true
menuRole=@Variant(\0\0\0\x7f\0\0\0\x12QAction::MenuRole\0\0\0\0\x1)
priority=@Variant(\0\0\0\x7f\0\0\0\x12QAction::Priority\0\0\0\0\x80)
shortcut=
shortcutContext=@Variant(\0\0\0\x7f\0\0\0\x14Qt::ShortcutContext\0\0\0\0\x1)
shortcutVisibleInContextMenu=true
statusTip=
text=Dock settings
toolTip=Dock settings
whatsThis=
[Perspectives]
1\Name=BEC - dock_area_0
1\State="@ByteArray(\0\0\x3\x38x\xda\x95\x92_O\x83\x30\x14\xc5\xdf\xfd\x14\x37\xbcO\x8alN\x13`\x19\xcc=\xaa\v\xfb\xe3k\x85\xeb\xd2\b\xadi\xcb\x9c\xc6\xfo\x8b\xa6.\x1b\x98\xec\tz\xce\xe1wo\xe\x8d&\xfb\xba\x82\x1dJ\xc5\x4\x8f\xbd\xe0\x92x\x80\xbc\x10%\xe3\xdb\xd8[-\xe7\x83\x1bo\x92\x44\v=-w\x94\x17X\xce\x44\xf1j\xbc\xfc\x43i\xac\x61\xed>\xf4`\xa5P\xba\xb3\xc1\x64\x82k\xca\xb8Q\xac\x9d\x44\xee\f\xf3JP\xdd\xe F\xcf\xdf*\xa6\xb5\x91\x1f$C\x13\xd1-\xe0\xcb\x2\x1a\xae\x63o\xd8\x9b\x19\xb8Lh2S\x89\x14\x96\xf4\xb9\x1d\aY#%Z+/(\xb7\xa3\xa5\xa8\x9e\xa6\xb9\xc9mX\xb9\x45\r\xf7\xb4\xc6\x13\x17\xb2J(,\xed\x62~\x12\xf9\x16\xd9\vN\xef\xb2\x45\x83\r\x1e#\x9d~\xe\xcc\xee\xf1(\xc5V\xa2R)\x95]k\x1e\xda\x9d\xe8\x9c}\xa2J\x2\x42\x46\x10\x8e\xc6\x10^\x13\x88\xfc\x1f\xd1<\x7f\x1b\xec\xdd`Cw\xf8\"d}<\xda\xe9gv\x93\x9b\xbf\xd4\xa8T\xec;\xfa\xf9\xf3\xce\x81\xce\xa8\xa6k\x86\xefxR\xcf\x81\xf3_3\x1\t W\xb7\x10\xeG065u\xd5\xe3\xbb{j\xde{\xee}r\xf1\r\x83x\vk)"
size=1
[mainWindow]
DockingState="@ByteArray(\0\0\x3\x38x\xda\x95\x92_O\x83\x30\x14\xc5\xdf\xfd\x14\x37\xbcO\x8alN\x13`\x19\xcc=\xaa\v\xfb\xe3k\x85\xeb\xd2\b\xadi\xcb\x9c\xc6\xfo\x8b\xa6.\x1b\x98\xec\tz\xce\xe1wo\xe\x8d&\xfb\xba\x82\x1dJ\xc5\x4\x8f\xbd\xe0\x92x\x80\xbc\x10%\xe3\xdb\xd8[-\xe7\x83\x1bo\x92\x44\v=-w\x94\x17X\xce\x44\xf1j\xbc\xfc\x43i\xac\x61\xed>\xf4`\xa5P\xba\xb3\xc1\x64\x82k\xca\xb8Q\xac\x9d\x44\xee\f\xf3JP\xdd\xe F\xcf\xdf*\xa6\xb5\x91\x1f$C\x13\xd1-\xe0\xcb\x2\x1a\xae\x63o\xd8\x9b\x19\xb8Lh2S\x89\x14\x96\xf4\xb9\x1d\aY#%Z+/(\xb7\xa3\xa5\xa8\x9e\xa6\xb9\xc9mX\xb9\x45\r\xf7\xb4\xc6\x13\x17\xb2J(,\xed\x62~\x12\xf9\x16\xd9\vN\xef\xb2\x45\x83\r\x1e#\x9d~\xe\xcc\xee\xf1(\xc5V\xa2R)\x95]k\x1e\xda\x9d\xe8\x9c}\xa2J\x2\x42\x46\x10\x8e\xc6\x10^\x13\x88\xfc\x1f\xd1<\x7f\x1b\xec\xdd`Cw\xf8\"d}<\xda\xe9gv\x93\x9b\xbf\xd4\xa8T\xec;\xfa\xf9\xf3\xce\x81\xce\xa8\xa6k\x86\xefxR\xcf\x81\xf3_3\x1\t W\xb7\x10\xeG065u\xd5\xe3\xbb{j\xde{\xee}r\xf1\r\x83x\vk)"
Geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\f\x83\0\0\x6\xf5\0\0\0\0\0\0\0\0\xff\xff\xff\xff\xff\xff\xff\xff\0\0\0\0\0\0\0\0\xf\0\0\0\0\0\0\0\0\0\0\0\f\x83\0\0\x6\xf5)
State=@Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xf\x80\x4\x95\x4\0\0\0\0\0\0\0\x43\0\x94.)
[manifest]
widgets\1\closable=true
widgets\1\floatable=true
widgets\1\floating=false
widgets\1\floating_abs_h=0
widgets\1\floating_abs_w=0
widgets\1\floating_abs_x=0
widgets\1\floating_abs_y=0
widgets\1\floating_rel_h=0
widgets\1\floating_rel_w=0
widgets\1\floating_rel_x=0
widgets\1\floating_rel_y=0
widgets\1\floating_screen=
widgets\1\movable=true
widgets\1\object_name=BECQueue
widgets\1\widget_class=BECQueue
widgets\2\closable=true
widgets\2\floatable=true
widgets\2\floating=false
widgets\2\floating_abs_h=0
widgets\2\floating_abs_w=0
widgets\2\floating_abs_x=0
widgets\2\floating_abs_y=0
widgets\2\floating_rel_h=0
widgets\2\floating_rel_w=0
widgets\2\floating_rel_x=0
widgets\2\floating_rel_y=0
widgets\2\floating_screen=
widgets\2\movable=true
widgets\2\object_name=BECStatusBox
widgets\2\widget_class=BECStatusBox
widgets\3\closable=true
widgets\3\floatable=true
widgets\3\floating=false
widgets\3\floating_abs_h=0
widgets\3\floating_abs_w=0
widgets\3\floating_abs_x=0
widgets\3\floating_abs_y=0
widgets\3\floating_rel_h=0
widgets\3\floating_rel_w=0
widgets\3\floating_rel_x=0
widgets\3\floating_rel_y=0
widgets\3\floating_screen=
widgets\3\movable=true
widgets\3\object_name=DataViewer
widgets\3\widget_class=DataViewer
widgets\4\closable=true
widgets\4\floatable=true
widgets\4\floating=false
widgets\4\floating_abs_h=0
widgets\4\floating_abs_w=0
widgets\4\floating_abs_x=0
widgets\4\floating_abs_y=0
widgets\4\floating_rel_h=0
widgets\4\floating_rel_w=0
widgets\4\floating_rel_x=0
widgets\4\floating_rel_y=0
widgets\4\floating_screen=
widgets\4\movable=true
widgets\4\object_name=ScanControlXAS
widgets\4\widget_class=ScanControlXAS
widgets\5\closable=true
widgets\5\floatable=true
widgets\5\floating=false
widgets\5\floating_abs_h=0
widgets\5\floating_abs_w=0
widgets\5\floating_abs_x=0
widgets\5\floating_abs_y=0
widgets\5\floating_rel_h=0
widgets\5\floating_rel_w=0
widgets\5\floating_rel_x=0
widgets\5\floating_rel_y=0
widgets\5\floating_screen=
widgets\5\movable=true
widgets\5\object_name=ScanProgressBar
widgets\5\widget_class=ScanProgressBar
widgets\6\closable=true
widgets\6\floatable=true
widgets\6\floating=false
widgets\6\floating_abs_h=0
widgets\6\floating_abs_w=0
widgets\6\floating_abs_x=0
widgets\6\floating_abs_y=0
widgets\6\floating_rel_h=0
widgets\6\floating_rel_w=0
widgets\6\floating_rel_x=0
widgets\6\floating_rel_y=0
widgets\6\floating_screen=
widgets\6\movable=true
widgets\6\object_name=Waveform
widgets\6\widget_class=Waveform
widgets\7\closable=true
widgets\7\floatable=true
widgets\7\floating=false
widgets\7\floating_abs_h=0
widgets\7\floating_abs_w=0
widgets\7\floating_abs_x=0
widgets\7\floating_abs_y=0
widgets\7\floating_rel_h=0
widgets\7\floating_rel_w=0
widgets\7\floating_rel_x=0
widgets\7\floating_rel_y=0
widgets\7\floating_screen=
widgets\7\movable=true
widgets\7\object_name=Waveform
widgets\7\widget_class=Waveform
widgets\size=6
[profile]
created_at=2026-03-31T08:39:33Z
quick_select=true
screenshot="@ByteArray(\x89PNG\r\n\x1a\n\0\0\0\rIHDR\0\0\f\x84\0\0\x6\xf6\b\x6\0\0\0~d\x88\x90\0\0\0\tpHYs\0\0\xe\xc4\0\0\xe\xc4\x1\x95+\xe\x1b\0\0 \0IDATx\x9c\xec\xddw|O\xd7\x1f\xc7\xf1\xd7\x37;6\x89=\x82\nJlb\xaf\"\xb1\xa9\xd9V\xd5\xa6\xd4V\xb5W\xd5\xae\x1a\xfd\x95\xda#h\xed=B\bZ\xb3\xf6j\xec\x19\r!\x91\x90\xbd~\x7f\xa4\xfdV\x9aH\x82\x44\x84\xf7\xf3\xf1\xe8\xa3\xf9\xdes\xee\x39\x9f|\xefq\xbf\xf7{r?\xf7\x18\xf2\xd9\x15\x8c\x42\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44R\r\x93\x94\xe@DDDDDDDDDDDDDDDDDDDDDDDD^\x8e\x12\x42\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44R\x19%\x84\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\xa4\x32J\by\x8b\x14-Z\x84\xa2\x45\x8b\xa4t\x18\"\x89\xa6\x31\x9b:\xe9\xb8\xbd\xbft\xec\x45\x44\x44\x44\x44\x44\x44\x44\x44\x62\xd3\xbc\x99\x88\x88\x88\x88\x88\x88\x88\x88\x88\xbcm4o)\x89\xa5\x84\x10\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x91TF\t!\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\xa9\x8cYJ\a \"\"\"\"\"\"\"\"\"\"\"\"\x92Z\xe4\xcc\x91\x83\xb4\xe9\xd2\x62\x66\xa6?\xb3\x89\x88\x88\x88\x88\x88\x88\x88H\xea\x11\x1c\x12\x42P@\x10\xbeO|\t\r\rM\xe9pD$\x89h\xa6ZDDDDDDDDDDDD$\x1\x16\x16V\xd8\xe5\xcf\xcb\xe3G\x8f\xf1\xff\xeb)\x11\x11\x11)\x1d\x92\x88\x88\x88\x88\x88\x88\x88\x88H\xa2YZX`ffJ\xfe\xfcv<x\xf0\x10??\xbf\x94\xeI\xe4\xb5\x14-Z\x4\xf\x8f\xcb)\x1d\x46\x8a\x33I\xe9\0\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\xdevv\xf9\xf3\xe0\xf3\xf8\x11\x81\x81\x81J\x6\x11\x11\x11\x11\x11\x11\x11\x11\x91T'$4\x94\x80\xc0 \xbc\xbc\x1e\x62\x9b\xd5&\xa5\xc3\x11\x91$\xa2\x84\x10\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x91x\xe4\xcc\x91\x83\xc7\x8f|\b\b\bJ\xe9PDDDDDDDD\xe4\x1d\x96?\xbf]\xb2\xf7\x11\x1a\x1a\x82\xef\xe3'\xe4\xc8\x91#\xd9\xfb\x12\x91\xe4\xa7\x84\x10\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x91x\xa4M\x97\x96\x90\x90\x90\x94\xe\x43\x44\x44\x44\x44\x44\x44\x44\x44$I\x84\x84\x86\x90.}\xba\x94\xe\x43\x44\x92\x80\x12\x42\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\xe2\x61\x66\x66\x46\x44\x44\x44J\x87!\"\"\"\"\"\"\"\"\x92$\"\"\"035M\xe9\x30$\x19\x19\f\x6\f\x6\xc3\x1b\xdbOR\x8eYJ\a \"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"o\x97\x46\x8d\x1aR\xa2\x84\x43\xa2\xeb\x9f>u\x1a\xd7\xdd{\x92\x31\"I\f\x83\xc1@\xa7N\x1d\x30\x18\f,^\xbc\x14\x13\x13\x13\x6\xf\x1e\xc4\xae\x9d\xae\x9c\x39{6F\xdd\xd2\xa5JQ\xbf\x81\x33\xd3\xa6M'22\x92n]\xbb`aa\xc1Os\xe6\x12\x15\x15\x95\xa4\x31\xb5o\xdf\x8e\\\xb9r\xc5\xd8~\xff\xfe}\\\\V&i_)\xc5\xc1\xa1\x38\0\x17.\\|\xa3\xfd*!DDDDDDDDDDDDDDDDDDDDDDDb(Q\xc2\x81Z5kp\xfb\xf6\x9d\x4\xeb\xa6I\x93\x6g\xa7zX[[\xb3i\xf3\x96\x64\x89\xa7@\x81\xfcT\xaaT\x91_~Y\x9d,\xed'$W\xae\x9c\x34l\xd8\0[[[\xae^\xbd\xca\xb6m;\b\t\tI\x91X\x12\xe3\xf3v\x9f\x61\x30\x18X\xb2\x64\x19\xceN\xf5\x38\x7f\xfe\x42\xac\x84\x90\xdcyr\xe3\xecT\x8f\x19\x33\x66\xf1\xc5\x17\x9f\xf3\xe9\xa7mY\xb9\xea\x97\xa4\x8f\xe5\xf3\xcf\xe8\xd4\xb1\x3\xd7\xae]#22:\xf9\xc3\xc4\xc4\x4g\xa7z\x18\f\x6\x96-sI\xf2>\xdf\xb4Z5k\x2J\b\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x91\xb7\xc0\xed\xdbw\xe8\xd9\xab\x37\x99\x32\x65za\x9dg\xcf\x9e\x11\x11\x11\xce\xb0\xa1\x43\xe8\xd7\xaf\xf@\x92'\x85\x14(\x90\x9f\x1f~\xf8\x1e_\x1f_6m\xda\x42PPP\x92\xb6\x9f\x10{\xfb\x42\xfc\x38{&!!!<x\xf0\x90\xbau\xea\xe0\xec\xe4\x44\xaf\xaf\xfa\x10\x1e\x1e\xfe\x46\x63IHTT\x14K\x96,\x3\xa0\xfd\xe7\xed\x30\x33\x35Mp\x9f\xce\x9d;\xd2\xa6u+V\xac\\\xc5\xe2\xc5K_k\xc5\xeg\xa7z\xb4n\xdd\xf2\xdf\r\x6\x3\x1f\x14,\xc8\x8a\x15\xabX\xb4xI\xcc~;u\xa4\x63\x87/\xa8Q\xbd:QQ\x91\xc6\xed\xeb\x37lb\xe7\xce]\xaf\x1c\xc3\x9b`g\x97/\xc1\x64);;;n\xdf\xbe\x9d\xacq\x98$k\xeb\xf1\xa8Q\xa3\x1a\xee\xfb\xf6P\xa3\x46\xb5W*\x8f\xcf\xe0\xaf\a\xb2}\xdb\xe6\xd7\rQ\xfe\xe6\xbak;\xfd\xfb\xf5~\xe5rI\x1e{\xdd\\\xe9\xd5\xb3GJ\x87\xf1VJ\xe9\x31\xabs\xd0\xcb\xd3g\x82\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\xc8\xdb)S\xa6L\xac_\xb7\xfa\x85\xff\xd5\xacY\x83\x88\x88H&M\x9e\xc2\xde\xbd\xfb\xe8\xd7\xaf\xf\xceN\xf5\x92\xac\xff\x82\x5\v0\xe3\x87\xe9\xf8\xfa\xf8\x32p\xd0\xe0\x37\x9e\f\x2\xd0\xb5Kg\x1ez{\xf3Y\xbb/\xe8\xde\xa3'_\x7f\xfd\r\xf6\xf6\x85\xa8W\xaf\xee\x1b\x8f%1LLLX\xb9\xf2\x17\xd6\xacYK\xdb\xb6m\x12\xac\xdf\xa6u+\xd6\xacY\xcb\x8a\x15\xab\x30\x31y\xbd\x14\x83L\x99\x33S\xa0@\x1._\xbe\x12\xfd\x9f\xc7\x65\x96,]\xc6\xe2%Kc\xd5]\xb2t\x19K\x96.\xc3\xc3\xc3\xc3X\xbf@\x81\x2\x64\x8e'\x1\xe9m\x90/_>\xe6\xfd<\x87\xaaU*\x1b\xb7\xed?p\x80\xfd\a\xe\x18_\xd7\xacY\x83\xf9\xf3\xe6`g\x97/YcI\xd2\x15\x42\xf2\xe4\xce\x85\x8b\xcb\x32\xa2\xa2\xa2h\xfb\xc9gx{?J\xca\xe6\x8d\xa6L\x9e\x80\xa3\xa3#\0\x91\x91\x91<~\xfc\x98\x43\x87\xe\xf3\xf3\xbc\x5o\xf5\xb2;o\x93U+\x97\x93\x33gN\xa6O\xff\x81m\xdbw&K\x1f\x1d\xbe\xf8\x9c\x8e\x1d;\x18_?{\xf6\x8c\a\xf\x1e\xe0\xe6\xb6\x97_W\xaf}\xed\xf6\xfb\xf7\xeb\x43\xb5jU\xe9\xde\xa3'>>\xbe\xaf\xdd\xde?\xac\xad\xad\xe8\xf9\x65\xfJ\x94(A\xce\x9c\x39\b\v\v\xe3\xfe\xfd\xfb\xac\xdf\xb0\x91\xdd\xbb\xLine truncated
screenshot_at=2026-08-11T07:58:12Z
+24 -1
View File
@@ -4,7 +4,6 @@
from __future__ import annotations
from bec_lib.logger import bec_logger
from bec_widgets.cli.rpc.rpc_base import RPCBase, rpc_call, rpc_timeout
logger = bec_logger.logger
@@ -15,6 +14,7 @@ logger = bec_logger.logger
_Widgets = {
"DataViewer": "DataViewer",
"DigitalTwin": "DigitalTwin",
"ScanControlXAS": "ScanControlXAS",
}
@@ -64,3 +64,26 @@ class DigitalTwin(RPCBase):
"""
Detach the widget from its parent dock widget (if widget is in the dock), making it a floating widget.
"""
class ScanControlXAS(RPCBase):
_IMPORT_MODULE = "debye_bec.bec_widgets.widgets.scan_control_xas.scan_control_xas"
@rpc_call
def attach(self):
"""
None
"""
@rpc_call
def detach(self):
"""
Detach the widget from its parent dock widget (if widget is in the dock), making it a floating widget.
"""
@rpc_timeout(None)
@rpc_call
def screenshot(self, file_name: "str | None" = None):
"""
Take a screenshot of the dock area and save it to a file.
"""
@@ -16,7 +16,7 @@ from bec_widgets.utils.colors import apply_theme, get_accent_colors
from bec_widgets.utils.error_popups import SafeSlot
# pylint: disable=E0611
from qtpy.QtWidgets import QApplication, QFileDialog, QVBoxLayout, QWidget
from qtpy.QtWidgets import QApplication, QFileDialog, QMessageBox, QVBoxLayout, QWidget
from .panels.input_panel import InputPanel
from .panels.scan_view import ScanViewer
@@ -60,6 +60,8 @@ class DataViewer(BECWidget, QWidget):
self.viewer.unload_button.clicked_connect(self.unload_all_scans)
self.input.open_fm_button.clicked_connect(self.open_in_file_manager)
self.show_open_from_folder_infobox = True
def apply_theme(self, theme: Literal["dark", "light"]):
"""
Apply the theme
@@ -115,6 +117,16 @@ class DataViewer(BECWidget, QWidget):
start_folder = f"/sls/{beamline}/data/{active_account}/raw"
else:
start_folder = "/sls"
if self.show_open_from_folder_infobox:
self.show_open_from_folder_infobox = False
info_box = QMessageBox(self)
info_box.setIcon(QMessageBox.Icon.Information)
info_box.setWindowTitle("Select Scan Folder")
info_box.setText("Navigate to the scan <b>folder</b> and click 'Open' to load it.")
info_box.addButton("Got it!", QMessageBox.ButtonRole.AcceptRole)
info_box.exec_()
base_filepath = QFileDialog.getExistingDirectory(self, "Open Scan Folder", start_folder)
if base_filepath != "":
@@ -7,6 +7,10 @@ from __future__ import annotations
designer_plugins = {
"DataViewer": ("debye_bec.bec_widgets.widgets.data_viewer.data_viewer", "DataViewer"),
"DigitalTwin": ("debye_bec.bec_widgets.widgets.digital_twin.digital_twin", "DigitalTwin"),
"ScanControlXAS": (
"debye_bec.bec_widgets.widgets.scan_control_xas.scan_control_xas",
"ScanControlXAS",
),
}
widget_icons = {"DataViewer": "find_in_page", "DigitalTwin": "lightbulb"}
widget_icons = {"DataViewer": "find_in_page", "DigitalTwin": "lightbulb", "ScanControlXAS": "tune"}
@@ -35,6 +35,7 @@ from qtpy.QtWidgets import (
QWidget,
)
from ..edge_selector import EdgeSelector
from .beamline import get_beamline_id
from .calculations.calc_positions import calc_positions
from .calculations.calc_sideview import calc_sideview
@@ -66,6 +67,11 @@ logger = bec_logger.logger
OFFSET_FILE_X01DA = Path(__file__).with_name("x01da_offsets.yaml")
OFFSET_FILE_X10DA = Path(__file__).with_name("x10da_offsets.yaml")
X01DA_E_MIN = 4500
X01DA_E_MAX = 60000
X10DA_E_MIN = 4500
X10DA_E_MAX = 35000
class DigitalTwin(BECWidget, QWidget):
"""
@@ -140,6 +146,7 @@ class DigitalTwin(BECWidget, QWidget):
self.setWindowTitle("Digital Twin")
self.resize(1450, 950)
self.input.edge_selector.clicked_connect(self.open_edge_selector)
self.input.energy.value_changed_connect(self.calc_assistant)
self.input.sldi_hacc.value_changed_connect(self.calc_assistant)
self.input.sldi_vacc.value_changed_connect(self.calc_assistant)
@@ -162,6 +169,7 @@ class DigitalTwin(BECWidget, QWidget):
self.settings.load_offsets.clicked_connect(self.load_offsets)
self.settings.show_offsets.clicked_connect(self.show_offsets)
self.edge_selector_energy = 0.0
self.bragg_angle = 0.0
self.qy = 0.0
self.offsets = {}
@@ -326,6 +334,7 @@ class DigitalTwin(BECWidget, QWidget):
self.calc_fm_ideal_pitch()
self.calc_mo1_energy_resolution()
case "energy":
self.update_edge_selected()
self.calc_mo1_bragg_angle()
self.calc_cm_crit_pitch()
self.calc_cm_reflectivity()
@@ -789,6 +798,24 @@ class DigitalTwin(BECWidget, QWidget):
surfaces = calc_surfaces(config)
self.surface_plots.update_surfaces(scene="reality", data=surfaces)
@SafeSlot()
def open_edge_selector(self, *_):
match self.beamline:
case "x01da":
dlg = EdgeSelector(self, llim=X01DA_E_MIN, hlim=X01DA_E_MAX)
case "x10da":
dlg = EdgeSelector(self, llim=X10DA_E_MIN, hlim=X10DA_E_MAX)
case _:
dlg = EdgeSelector(self)
if dlg.exec_():
self.input.edge_selected.setText(f"{dlg.selected_element}, {dlg.selected_edge}-edge")
self.edge_selector_energy = dlg.selected_energy
self.input.energy.set_number(dlg.selected_energy)
def update_edge_selected(self):
if self.input.energy.value() != self.edge_selector_energy:
self.input.edge_selected.setText("-")
def calc_mo1_energy_resolution(self):
"""
Calculates the energy resolution of the monochromator
@@ -5,10 +5,17 @@ Panel for user inputs of the digital twin widget
from typing import Union
# pylint: disable=E0611
from qtpy.QtWidgets import QVBoxLayout, QWidget
from qtpy.QtWidgets import QHBoxLayout, QLabel, QPushButton, QVBoxLayout, QWidget
from ..types import BeamlineId
from ..widgets.qt_widgets import Button, ComboBox, Group, InputNumberField, NumberIndicator
from ..widgets.qt_widgets import (
Button,
ComboBox,
Group,
InputNumberField,
NumberIndicator,
TextIndicator,
)
class InputPanel(QWidget):
@@ -28,11 +35,28 @@ class InputPanel(QWidget):
# Adapt to reality
self.adapt_reality = Button(label_button="Adapt to reality", enabled=True)
# Energy
# edge_selector_layout = QVBoxLayout()
# edge_selector_label = QLabel("Absorption edge:")
# self.edge_selector_button = QPushButton("Choose")
# self.edge_label = QLabel("No edge selected")
# edge_selector_layout.addWidget(edge_selector_label)
# edge_selector_layout.addWidget(self.edge_label)
# edge_selector_layout.addWidget(self.edge_selector_button)
# edge_selector_layout.addStretch()
# Edge selector
self.edge_selector = Button("Absorption edge", "Choose", enabled=True)
# Chosen absorption edge
self.edge_selected = TextIndicator("Chosen edge")
# Direct Energy Input
self.energy = InputNumberField(
"energy", "Energy", unit="eV", init=8979, decimals=0, single_step=100, ll=4000, hl=65000
)
self.energy_group = Group("Energy", [self.edge_selector, self.edge_selected, self.energy])
# FE Slits Acceptance
self.sldi_hacc = InputNumberField(
"h_acc",
@@ -156,7 +180,7 @@ class InputPanel(QWidget):
"User Input",
[
self.adapt_reality,
self.energy,
self.energy_group,
self.sldi_ass_group,
self.cm_ass_group,
self.mo1_ass_group,
@@ -0,0 +1,287 @@
"""
Edge Selector: Custom BEC dialog to select an absorption edge.
"""
import sys
import xraydb
from bec_lib import bec_logger
from bec_widgets.utils.bec_dispatcher import BECDispatcher
from bec_widgets.utils.colors import apply_theme, get_accent_colors
from bec_widgets.utils.error_popups import SafeSlot
# pylint: disable=E0611
from qtpy.QtWidgets import (
QApplication,
QComboBox,
QDialog,
QGridLayout,
QHBoxLayout,
QLabel,
QPushButton,
QVBoxLayout,
)
logger = bec_logger.logger
ELEMENTS = {
# period 1
"H": (1, 1),
"He": (1, 18),
# period 2
"Li": (2, 1),
"Be": (2, 2),
"B": (2, 13),
"C": (2, 14),
"N": (2, 15),
"O": (2, 16),
"F": (2, 17),
"Ne": (2, 18),
# period 3
"Na": (3, 1),
"Mg": (3, 2),
"Al": (3, 13),
"Si": (3, 14),
"P": (3, 15),
"S": (3, 16),
"Cl": (3, 17),
"Ar": (3, 18),
# period 4
"K": (4, 1),
"Ca": (4, 2),
"Sc": (4, 3),
"Ti": (4, 4),
"V": (4, 5),
"Cr": (4, 6),
"Mn": (4, 7),
"Fe": (4, 8),
"Co": (4, 9),
"Ni": (4, 10),
"Cu": (4, 11),
"Zn": (4, 12),
"Ga": (4, 13),
"Ge": (4, 14),
"As": (4, 15),
"Se": (4, 16),
"Br": (4, 17),
"Kr": (4, 18),
# period 5
"Rb": (5, 1),
"Sr": (5, 2),
"Y": (5, 3),
"Zr": (5, 4),
"Nb": (5, 5),
"Mo": (5, 6),
"Tc": (5, 7),
"Ru": (5, 8),
"Rh": (5, 9),
"Pd": (5, 10),
"Ag": (5, 11),
"Cd": (5, 12),
"In": (5, 13),
"Sn": (5, 14),
"Sb": (5, 15),
"Te": (5, 16),
"I": (5, 17),
"Xe": (5, 18),
# period 6
"Cs": (6, 1),
"Ba": (6, 2),
"La": (6, 3),
# lanthanides (row 8)
"Ce": (8, 4),
"Pr": (8, 5),
"Nd": (8, 6),
"Pm": (8, 7),
"Sm": (8, 8),
"Eu": (8, 9),
"Gd": (8, 10),
"Tb": (8, 11),
"Dy": (8, 12),
"Ho": (8, 13),
"Er": (8, 14),
"Tm": (8, 15),
"Yb": (8, 16),
"Lu": (8, 17),
# period 6 continued
"Hf": (6, 4),
"Ta": (6, 5),
"W": (6, 6),
"Re": (6, 7),
"Os": (6, 8),
"Ir": (6, 9),
"Pt": (6, 10),
"Au": (6, 11),
"Hg": (6, 12),
"Tl": (6, 13),
"Pb": (6, 14),
"Bi": (6, 15),
"Po": (6, 16),
"At": (6, 17),
"Rn": (6, 18),
# period 7
"Fr": (7, 1),
"Ra": (7, 2),
"Ac": (7, 3),
# actinides (row 9)
"Th": (9, 4),
"Pa": (9, 5),
"U": (9, 6),
"Np": (9, 7),
"Pu": (9, 8),
"Am": (9, 9),
"Cm": (9, 10),
"Bk": (9, 11),
"Cf": (9, 12),
}
class EdgeSelector(QDialog):
"""BEC widget to display a selection dialog where the user can select and edge and an element"""
def __init__(self, parent=None, llim: int | float = 0, hlim: int | float = 1e6):
super().__init__(parent)
self.setWindowTitle("Absorption Edge Selector")
self._buttons = {}
self.selected_edge = None
self.selected_element = None
self.selected_energy = None
self._llim = llim
self._hlim = hlim
layout = QVBoxLayout(self)
text = QLabel("Select edge and element.")
edge_layout = QHBoxLayout()
edge_label = QLabel("Edge")
self._edge = QComboBox()
self._edge.addItems(["K", "L1", "L2", "L3"])
edge_layout.addWidget(edge_label)
edge_layout.addWidget(self._edge)
edge_layout.addStretch()
grid_layout = QGridLayout()
grid_layout.setContentsMargins(0, 0, 0, 0)
grid_layout.setSpacing(1)
for element, (row, col) in ELEMENTS.items():
button = QPushButton(element)
button.setFixedSize(42, 32)
button.setCheckable(True)
button.setAutoDefault(False)
button.setDefault(False)
button.clicked.connect(lambda checked=False, e=element: self._element_changed(e))
grid_layout.addWidget(button, row - 1, col - 1)
self._buttons[element] = button
res_layout = QHBoxLayout()
self._res = QLabel("")
res_layout.addStretch()
res_layout.addWidget(self._res)
res_layout.addStretch()
button_layout = QHBoxLayout()
self._cancel_button = QPushButton("Cancel")
self._cancel_button.clicked.connect(self.reject)
self._cancel_button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
self._select_button = QPushButton("Select")
self._select_button.setEnabled(False)
self._select_button.clicked.connect(self.accept)
self._select_button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
button_layout.addStretch()
button_layout.addWidget(self._cancel_button)
button_layout.addWidget(self._select_button)
button_layout.addStretch()
layout.addWidget(text)
layout.addLayout(edge_layout)
layout.addLayout(grid_layout)
layout.addLayout(res_layout)
layout.addLayout(button_layout)
self.adjustSize()
self.setFixedSize(self.sizeHint())
self._edge.activated.connect(self._edge_changed)
self._edge_changed()
@SafeSlot()
def _edge_changed(self, *_):
self.selected_edge = self._edge.currentText()
for element, button in self._buttons.items():
if "L" in self.selected_edge and element in ["H", "He"]:
button.setDisabled(True)
button.setChecked(False)
elif self.selected_edge in ["L2", "L3"] and element == "Li":
button.setDisabled(True)
button.setChecked(False)
else:
energy = xraydb.xray_edge(element, self.selected_edge, True)
if self.selected_element == element:
self.selected_energy = energy
if energy is not None:
if energy < self._llim or energy > self._hlim:
button.setChecked(False)
button.setDisabled(True)
else:
button.setEnabled(True)
else:
button.setChecked(False)
button.setDisabled(True)
self._set_select_text()
@SafeSlot()
def _element_changed(self, element: str | None = None):
if element is None:
if self.selected_element is None:
return
element = self.selected_element
for e, btn in self._buttons.items():
if e != element:
btn.setChecked(False)
self._buttons[element].setChecked(True)
self.selected_element = element
self.selected_energy = xraydb.xray_edge(element, self.selected_edge, True)
self._select_button.setEnabled(True)
self._set_select_text()
def _set_select_text(self):
if self.selected_energy is not None:
if self._buttons[self.selected_element].isChecked():
self._enable_button(self._select_button, True)
self._select_button.setText(
f"Selected {self.selected_element}, {self.selected_edge}-edge, {self.selected_energy:0.1f} eV"
)
else:
self._enable_button(self._select_button, False)
self._select_button.setText("Select")
else:
self._enable_button(self._select_button, False)
@staticmethod
def _enable_button(button: QPushButton, enable: bool):
if enable:
button.setEnabled(True)
button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
else:
button.setDisabled(True)
button.setStyleSheet(
"QPushButton {{background-color: rgb(120, 120, 120); color: white;}}"
)
if __name__ == "__main__":
app = QApplication(sys.argv)
apply_theme("light")
dispatcher = BECDispatcher(gui_id="edge_selector")
win = EdgeSelector()
win.show()
sys.exit(app.exec_())
Whitespace-only changes.
@@ -0,0 +1,264 @@
from typing import Literal, Optional
from bec_widgets.utils.colors import get_accent_colors
from bec_widgets.utils.error_popups import SafeSlot
from qtpy.QtCore import Signal
# pylint: disable=E0611
from qtpy.QtWidgets import (
QApplication,
QComboBox,
QDialog,
QGridLayout,
QHBoxLayout,
QLabel,
QPushButton,
QSizePolicy,
QVBoxLayout,
QWidget,
)
LABEL_WIDTH = 118
ROW_MARGINS = (4, 0, 4, 0)
ROW_SPACING = 6
class Button(QWidget):
def __init__(self, label=None, label_button: str = "", enabled=False):
super().__init__()
layout = QHBoxLayout(self)
layout.setContentsMargins(*ROW_MARGINS)
layout.setSpacing(ROW_SPACING)
if label is not None:
self.label = QLabel(label)
self.label.setFixedWidth(LABEL_WIDTH)
layout.addWidget(self.label)
self.button = QPushButton(label_button)
self.enable_button(enabled)
layout.addWidget(self.button)
def clicked_connect(self, func):
"""Connect a function to the button press."""
self.button.clicked.connect(func)
def enable_button(self, enable: bool = False):
if enable:
self.button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
self.button.setEnabled(True)
else: # disabled
self.button.setStyleSheet(
"QPushButton {{background-color: rgb(120, 120, 120); color: white;}}"
)
self.button.setDisabled(True)
def setText(self, text):
self.button.setText(text)
class ComboBox(QWidget):
def __init__(self, identifier="", label="", enums=None):
super().__init__()
layout = QVBoxLayout(self)
layout.setContentsMargins(*ROW_MARGINS)
layout.setSpacing(ROW_SPACING)
self.identifier = identifier
self.label = QLabel(label)
self.label.setFixedWidth(LABEL_WIDTH)
self.label.setWordWrap(True)
self.label.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred)
layout.addWidget(self.label)
self.value = QComboBox()
self.value.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
for entry in enums or []:
self.value.addItem(entry)
layout.addWidget(self.value)
def set_current_text(self, text):
self.value.setCurrentText(text)
def currentText(self) -> str:
return self.value.currentText()
def has_focus(self) -> bool:
return QApplication.focusWidget() is self.value.view()
def activated_connect(self, func):
"""Connect a function to the Enter/Return key press."""
self.value.activated.connect(func)
def setDisabled(self, disable):
self.value.setDisabled(disable)
class TextIndicator(QWidget):
def __init__(self, identifier="", label="", text=""):
super().__init__()
layout = QVBoxLayout(self)
layout.setContentsMargins(*ROW_MARGINS)
layout.setSpacing(ROW_SPACING)
self.identifier = identifier
self.label = QLabel(label)
self.label.setFixedWidth(LABEL_WIDTH)
self.label.setWordWrap(True)
self.label.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred)
layout.addWidget(self.label)
self.value = QLabel(text)
self.value.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
layout.addWidget(self.value)
def setText(self, text):
self.value.setText(text)
def text(self) -> str:
return self.value.text()
ELEMENTS = {
# period 4
"Sc": (4, 3),
"Ti": (4, 4),
"V": (4, 5),
"Cr": (4, 6),
"Mn": (4, 7),
"Fe": (4, 8),
"Co": (4, 9),
"Ni": (4, 10),
"Cu": (4, 11),
"Zn": (4, 12),
"Ga": (4, 13),
"Ge": (4, 14),
"As": (4, 15),
"Se": (4, 16),
"Br": (4, 17),
"Kr": (4, 18),
# period 5
"Rb": (5, 1),
"Sr": (5, 2),
"Y": (5, 3),
"Zr": (5, 4),
"Nb": (5, 5),
"Mo": (5, 6),
"Tc": (5, 7),
"Ru": (5, 8),
"Rh": (5, 9),
"Pd": (5, 10),
"Ag": (5, 11),
"Cd": (5, 12),
"In": (5, 13),
"Sn": (5, 14),
"Sb": (5, 15),
"Te": (5, 16),
"I": (5, 17),
"Xe": (5, 18),
# period 6
"Cs": (6, 1),
"Ba": (6, 2),
"La": (8, 3),
"Ce": (8, 4),
"Pr": (8, 5),
"Nd": (8, 6),
"Pm": (8, 7),
"Sm": (8, 8),
"Eu": (8, 9),
"Gd": (8, 10),
"Tb": (8, 11),
"Dy": (8, 12),
"Ho": (8, 13),
"Er": (8, 14),
"Tm": (8, 15),
"Pb": (6, 14),
"Bi": (6, 15),
"Po": (6, 16),
"At": (6, 17),
"Rn": (6, 18),
# period 7
"Fr": (7, 1),
"Ra": (7, 2),
"Ac": (9, 3),
"Th": (9, 4),
"Pa": (9, 5),
"U": (9, 6),
}
class PeriodicTableDialog(QDialog):
def __init__(self, parent=None):
super().__init__(parent)
self.selected = None
layout = QGridLayout(self)
layout.setContentsMargins(0, 0, 0, 0)
layout.setSpacing(1)
for element, (row, col) in ELEMENTS.items():
button = QPushButton(element)
button.setFixedSize(42, 32)
button.clicked.connect(lambda checked=False, e=element: self.select(e))
layout.addWidget(button, row - 1, col - 1)
@SafeSlot()
def select(self, element):
self.selected = element
self.accept()
class ElementSelector(QWidget):
dialogClosed = Signal()
def __init__(self):
super().__init__()
self.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
layout = QVBoxLayout(self)
layout.setContentsMargins(*ROW_MARGINS)
layout.setSpacing(ROW_SPACING)
self.label = QLabel("Element")
layout_selection = QHBoxLayout(self)
self.button = QPushButton("Select")
self.button.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
self.button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
layout_selection.addWidget(self.button)
layout.addWidget(self.label)
layout.addLayout(layout_selection)
self.current_element = ""
self.button.clicked.connect(self.open_table)
def open_table(self):
dialog = PeriodicTableDialog(self)
if dialog.exec_():
self.current_element = dialog.selected
self.dialogClosed.emit()
def currentElement(self):
return self.current_element
def apply_theme(self, theme: Optional[Literal["dark", "light"]] = None):
"""
Apply the theme
Args:
theme (Optional[str]): Theme, either "dark", "light", or None. Defaults to None.
"""
if theme is None:
app = QApplication.instance()
theme = app.theme.theme # type: ignore
self.button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
@@ -0,0 +1,15 @@
def main(): # pragma: no cover
from qtpy import PYSIDE6
if not PYSIDE6:
print("PYSIDE6 is not available in the environment. Cannot patch designer.")
return
from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection
from .scan_control_xas_plugin import ScanControlXASPlugin
QPyDesignerCustomWidgetCollection.addCustomWidget(ScanControlXASPlugin())
if __name__ == "__main__": # pragma: no cover
main()
@@ -0,0 +1,421 @@
"""
Scan Control XAS: Custom BEC widget for Scan Control XAS scans.
"""
import sys
from typing import Literal, Optional
import numpy as np
import pyqtgraph as pg
from bec_lib import bec_logger
from bec_lib.endpoints import MessageEndpoints
from bec_widgets.utils.bec_dispatcher import BECDispatcher
from bec_widgets.utils.colors import Colors, apply_theme, get_accent_colors
from bec_widgets.utils.error_popups import SafeSlot
from bec_widgets.widgets.control.scan_control.scan_control import ScanControl
from qtpy.QtCore import Qt
# pylint: disable=E0611
from qtpy.QtWidgets import (
QApplication,
QCheckBox,
QFrame,
QGroupBox,
QHBoxLayout,
QLabel,
QPushButton,
QScrollArea,
QSizePolicy,
QVBoxLayout,
QWidget,
)
# pylint: disable=E0402
from ....devices.mo1_bragg.mo1_bragg_utils import compute_spline
from ..edge_selector import EdgeSelector
logger = bec_logger.logger
ALLOWED_SCANS = [
"xas_simple_scan",
"xas_simple_scan_with_xrd",
"xas_advanced_scan",
"xas_advanced_scan_with_xrd",
]
PLOT_RESOLUTION = 100
H = 6.62606957e-34
E = 1.602176634e-19
C = 299792458
X01DA_E_MIN = 4500
X01DA_E_MAX = 60000
X10DA_E_MIN = 4500
X10DA_E_MAX = 35000
class ScanControlXAS(ScanControl):
"""
Main widget of Scan Control XAS
"""
def __init__(self, *args, **kwargs):
self._xas_scans_helper_group = QGroupBox("XAS scan helper")
self._xas_scans_helper_group.setSizePolicy(
QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed
)
xas_scans_helper_layout = QVBoxLayout(self._xas_scans_helper_group)
self.xas_scans_helper_widget = XASScansHelper(self)
xas_scans_helper_layout.addWidget(self.xas_scans_helper_widget)
super().__init__(
allowed_scans=ALLOWED_SCANS, default_scan="xas_simple_scan", *args, **kwargs
)
self._show_motion_profile(self._selected_scan)
self.d_spacing = 0
self.bec_dispatcher.connect_slot(
self._update_d_spacing, MessageEndpoints.device_readback("mo1_bragg")
)
@SafeSlot(dict, dict)
def _update_d_spacing(self, msg: dict, _: dict):
d_spacing = msg["signals"].get("mo1_bragg_crystal_current_d_spacing")["value"]
if d_spacing != self.d_spacing:
self.d_spacing = d_spacing
self.xas_scans_helper_widget.update_plot(d_spacing=d_spacing)
def _add_metadata_form(self):
self.layout.addWidget(self._xas_scans_helper_group) # type: ignore
super()._add_metadata_form()
self._connect_scan_parameter_signals()
def on_scan_selection_changed(self, scan_name: str):
super().on_scan_selection_changed(scan_name)
self._show_motion_profile(scan_name)
if scan_name in ALLOWED_SCANS:
self._connect_scan_parameter_signals()
self._scan_parameter_changed()
def _show_motion_profile(self, scan_name):
if scan_name in ALLOWED_SCANS:
self.xas_scans_helper_widget.setVisible(True)
else:
self.xas_scans_helper_widget.setVisible(False)
def _connect_scan_parameter_signals(self):
for box in self.kwarg_boxes:
for widget in box.findChildren(QWidget):
try:
if hasattr(widget, "valueChanged"):
widget.valueChanged.connect(
self._scan_parameter_changed, Qt.ConnectionType.UniqueConnection
)
elif hasattr(widget, "textChanged"):
widget.textChanged.connect(
self._scan_parameter_changed, Qt.ConnectionType.UniqueConnection
)
except TypeError:
# Raised if a connection would not be unique anymore, i.e. if
# connect_scan_parameter_signals is called more than once with
# the same kwarg_boxes
pass
@SafeSlot()
def _scan_parameter_changed(self, *_):
params = self.get_scan_parameters()[1]
self.xas_scans_helper_widget.update_plot(
scan_name=self._selected_scan, scan_parameters=params
)
def apply_theme(self, theme: Literal["dark", "light"]):
"""
Apply the theme
Args:
theme (str): Theme, either "dark" or "light"
"""
self.xas_scans_helper_widget.apply_theme(theme)
class XASScansHelper(QWidget):
"""
Additional widget specifically for XAS scans
"""
def __init__(self, parent):
super().__init__()
self._parent_widget = parent
self.beamline = ""
outer_layout = QVBoxLayout(self)
outer_layout.setContentsMargins(0, 0, 0, 0)
self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)
edge_selector_layout = QHBoxLayout()
edge_selector_label = QLabel("Absorption edge:")
self.edge_selector_button = QPushButton("Choose")
self.edge_label = QLabel("No edge selected")
edge_selector_layout.addWidget(edge_selector_label)
edge_selector_layout.addWidget(self.edge_label)
edge_selector_layout.addWidget(self.edge_selector_button)
edge_selector_layout.addStretch()
scan_rng_layout = QHBoxLayout()
self.scan_rng_ckbox = QCheckBox(self)
self.scan_rng_ckbox.setCheckState(Qt.CheckState.Checked)
scan_rng_label = QLabel("Auto adjust scan range to absorption edge")
scan_rng_layout.addWidget(self.scan_rng_ckbox)
scan_rng_layout.addWidget(scan_rng_label)
scan_rng_layout.addStretch()
plot_layout = QHBoxLayout()
plot_layout.setContentsMargins(0, 0, 0, 0)
self.plot_pos = self._make_plot(left_label="Energy<br>[eV]", bottom_label="Time [s]")
self.plot_vel = self._make_plot(
left_label="Scan Velocity<br>[eV/s]", bottom_label="Energy [eV]"
)
plot_layout.addWidget(self.plot_pos)
plot_layout.addWidget(self.plot_vel)
self.edge_energy = None
self.edge_selection = QHBoxLayout()
self.edge_selection.addLayout(edge_selector_layout)
self.edge_selection.addStretch(1)
outer_layout.addLayout(self.edge_selection)
outer_layout.addLayout(scan_rng_layout)
outer_layout.addLayout(plot_layout)
self.scan_name = None
self.scan_parameters = None
self.d_spacing = None
self.edge_selector_button.clicked.connect(self._update_edge)
self.scan_rng_ckbox.stateChanged.connect(self._update_auto_scan_rng)
self.apply_theme()
def _make_plot(self, left_label: str, bottom_label: str) -> pg.PlotWidget:
plot = pg.PlotWidget()
plot.setLabel("left", left_label)
plot.setLabel("bottom", bottom_label)
plot.setMouseEnabled(x=False, y=False)
plot.setMenuEnabled(False)
plot.hideButtons()
plot.getAxis("left").enableAutoSIPrefix(False)
plot.getAxis("bottom").enableAutoSIPrefix(False)
plot.setMinimumHeight(150)
plot.setMaximumHeight(150)
plot.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)
return plot
def _add_edge_marker(self, plot, x_arr, y_arr, energy_arr, edge_marker):
if self.edge_energy is None:
return
idx = int(np.argmin(np.abs(np.asarray(energy_arr) - self.edge_energy)))
if idx == 0 or idx == len(energy_arr) - 1:
return
x_marker = x_arr[idx]
y_marker = y_arr[idx]
scatter = pg.ScatterPlotItem(
[x_marker],
[y_marker],
symbol=edge_marker,
size=20,
brush=pg.mkBrush("r"),
pen=pg.mkPen("r"),
)
plot.addItem(scatter, ignoreBounds=True)
label = pg.TextItem(self.edge_label.text(), anchor=(0, 1.5), color="r")
label.setPos(x_marker, y_marker)
plot.addItem(label, ignoreBounds=True)
@SafeSlot()
def _update_edge(self, *_):
if self.beamline == "":
hostname = self._parent_widget.client._hostname
start = hostname.find("x")
if start != -1:
self.beamline = hostname[start : start + 5]
match self.beamline:
case "x01da":
dlg = EdgeSelector(self, llim=X01DA_E_MIN, hlim=X01DA_E_MAX)
case "x10da":
dlg = EdgeSelector(self, llim=X10DA_E_MIN, hlim=X10DA_E_MAX)
case _:
dlg = EdgeSelector(self)
if dlg.exec_():
self.edge_energy = dlg.selected_energy
self.edge_label.setText(
f"{dlg.selected_element}, {dlg.selected_edge}-edge, {dlg.selected_energy:0.1f} eV"
)
self._update_auto_scan_rng()
self.update_plot()
@SafeSlot()
def _update_auto_scan_rng(self, *_):
if self.scan_rng_ckbox.isChecked() and self.edge_energy is not None:
self._parent_widget._restore_kwargs(
{
"start": self.edge_energy - 200,
"stop": self.edge_energy + 1000,
"e_kink": self.edge_energy + 1000,
}
)
@SafeSlot()
def update_plot(self, *_, scan_name=None, scan_parameters=None, d_spacing=None, **__):
"""Update the plots. Parameters which are not defined will default to None,
in which case it will use the internal values if available.
Args:
scan_name(str): Scan name, e.g. "xas_simple_scan"
Defaults to None
scan_parameters(dict): Scan parameters from ScanControl
Defaults to None
d_spacing(float): d-spacing in Angstrom
Defaults to None
"""
if scan_name is not None:
self.scan_name = scan_name
if scan_parameters is not None:
self.scan_parameters = scan_parameters
if d_spacing is not None:
self.d_spacing = d_spacing
if self.scan_name is None:
return
if self.scan_parameters is None:
return
if self.d_spacing is None:
return
if d_spacing == 0:
return
x_time = np.linspace(0, self.scan_parameters["scan_time"], PLOT_RESOLUTION)
self.plot_pos.clear()
self.plot_vel.clear()
start_angle = self._energy_to_angle(self.scan_parameters["stop"])
stop_angle = self._energy_to_angle(self.scan_parameters["start"])
if start_angle == stop_angle:
return
if "xas_simple_scan" in self.scan_name:
amp = (stop_angle - start_angle) / 2
two_pi_f = 2 * np.pi * 1 / (2 * self.scan_parameters["scan_time"])
pos = (start_angle + stop_angle) / 2 + amp * np.cos(x_time * two_pi_f)
vel = two_pi_f * amp * np.sin(x_time * two_pi_f)
energy = self._angle_to_energy(pos)
vel_e = self._velocity_to_energy_per_s(pos, vel)
self.plot_pos.plot(x_time, energy)
self._add_edge_marker(self.plot_pos, x_time, energy, energy, "_")
self.plot_vel.plot(energy, -vel_e)
self._add_edge_marker(self.plot_vel, energy, -vel_e, energy, "|")
if "xas_advanced_scan" in self.scan_name:
if (
self.scan_parameters["e_kink"] < self.scan_parameters["start"]
or self.scan_parameters["e_kink"] > self.scan_parameters["stop"]
):
return
if self.scan_parameters["scan_time"] == 0:
return
e_kink_deg = self._energy_to_angle(self.scan_parameters["e_kink"])
pos, vel, t = compute_spline(
start_angle,
stop_angle,
self.scan_parameters["p_kink"],
e_kink_deg,
self.scan_parameters["scan_time"],
)
x_time = np.cumsum(t) / 1000
energy = self._angle_to_energy(pos)
vel_e = self._velocity_to_energy_per_s(pos, vel)
time_flipped = -np.flip(x_time) + x_time[-1]
energy_flipped = np.flip(energy)
self.plot_pos.plot(time_flipped, energy_flipped)
self._add_edge_marker(self.plot_pos, time_flipped, energy_flipped, energy_flipped, "_")
self.plot_vel.plot(energy, -vel_e)
self._add_edge_marker(self.plot_vel, energy, -vel_e, energy, "|")
self.apply_theme()
def apply_theme(self, theme: Optional[Literal["dark", "light"]] = None):
"""
Apply the theme
Args:
theme (Optional[str]): Theme, either "dark", "light", or None. Defaults to None.
"""
if theme is None:
app = QApplication.instance()
theme = app.theme.theme # type: ignore
self.edge_selector_button.setStyleSheet(
f"QPushButton {{background-color: {get_accent_colors().default.name()}; color: white;}}"
)
bg_color = pg.getConfigOption("background")
fg_color = pg.getConfigOption("foreground")
for plot in (self.plot_pos, self.plot_vel):
plot.setBackground(bg_color)
for axis in ("left", "bottom", "right", "top"):
ax = plot.getAxis(axis)
ax.setPen(pg.mkPen(color=fg_color))
ax.setTextPen(pg.mkPen(color=fg_color))
curves = plot.listDataItems()
colors = Colors.golden_angle_color(colormap="plasma", num=len(curves), format="HEX")
for curve, color in zip(curves, colors):
if not isinstance(curve, pg.ScatterPlotItem):
curve.setPen(pg.mkPen(color=color, width=2))
def _energy_to_angle(self, energy: int | float):
if self.d_spacing is None:
return 0
if energy <= 0:
return 0
wl = C * H / (E * energy)
val = wl / (2 * self.d_spacing * 1e-10)
return np.asin(val) / np.pi * 180
def _angle_to_energy(self, angle: np.ndarray | int | float):
if self.d_spacing is None:
return 0
if isinstance(angle, np.ndarray):
if angle.any() <= 0:
return 0
else:
if angle <= 0:
return 0
wl = 2 * self.d_spacing * 1e-10 * np.sin(angle / 180 * np.pi)
return C * H / (E * wl)
def _velocity_to_energy_per_s(self, angle, velocity):
if self.d_spacing is None:
return 0
return (
-C
* H
* (np.pi / 180)
* np.cos(angle / 180 * np.pi)
/ (E * 2 * self.d_spacing * 1e-10 * np.sin(angle / 180 * np.pi) ** 2)
) * velocity
if __name__ == "__main__":
app = QApplication(sys.argv)
apply_theme("light")
dispatcher = BECDispatcher(gui_id="scan_control_advanced")
win = ScanControlXAS()
win.show()
sys.exit(app.exec_())
@@ -0,0 +1 @@
{'files': ['scan_control_xas.py']}
@@ -0,0 +1,57 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
from bec_widgets.utils.bec_designer import designer_material_icon
from qtpy.QtDesigner import QDesignerCustomWidgetInterface
from qtpy.QtWidgets import QWidget
from .scan_control_xas import ScanControlXAS
DOM_XML = """
<ui language='c++'>
<widget class='ScanControlXAS' name='scan_control_xas'>
</widget>
</ui>
"""
class ScanControlXASPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
def __init__(self):
super().__init__()
self._form_editor = None
def createWidget(self, parent):
if parent is None:
return QWidget()
t = ScanControlXAS(parent)
return t
def domXml(self):
return DOM_XML
def group(self):
return ""
def icon(self):
return designer_material_icon(ScanControlXAS.ICON_NAME)
def includeFile(self):
return "scan_control_xas"
def initialize(self, form_editor):
self._form_editor = form_editor
def isContainer(self):
return False
def isInitialized(self):
return self._form_editor is not None
def name(self):
return "ScanControlXAS"
def toolTip(self):
return "ScanControlXAS"
def whatsThis(self):
return self.toolTip()
+1 -1
View File
@@ -244,7 +244,7 @@ class XasAdvancedScan(XasSimpleScan):
stop: Annotated[float, ScanArgument(display_name="Stop Energy", description="Stop energy.", units=Units.eV)],
scan_time: Annotated[float, ScanArgument(display_name="Scan Time", description="Time for one scan cycle.", units=Units.s, ge=0)],
scan_duration: Annotated[float, ScanArgument(display_name="Scan Duration", description="Total scan duration.", units=Units.s, ge=0)],
p_kink: Annotated[float, ScanArgument(display_name="P Kink", description="Position of the kink.", ge=0)],
p_kink: Annotated[float, ScanArgument(display_name="P Kink", description="Position of the kink.", ge=0, le=100, units=Units.percent)],
e_kink: Annotated[float, ScanArgument(display_name="E Kink", description="Energy of the kink.", units=Units.eV)],
motor: Annotated[DeviceBase | None, ScanArgument(display_name="Motor", description="Bragg motor device.")] = None,
daq: Annotated[DeviceBase | None, ScanArgument(display_name="DAQ", description="NIDAQ device.")] = None,
+1
View File
@@ -20,6 +20,7 @@ dependencies = [
"ophyd_devices",
"opencv-python==4.11.0.86",
"xrt",
"xraydb",
]
[project.optional-dependencies]