bec-widgets 0.100.0__py3-none-any.whl → 0.101.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.101.0 (2024-09-02)
4
+
5
+ ### Feature
6
+
7
+ * feat: add Dap dialog widget ([`9781b77`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9781b77de27b2810fbb1047a61b1832dd186db01))
8
+
9
+ ### Refactor
10
+
11
+ * refactor: add docs, cleanup ([`61ecf49`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/61ecf491e52bfbfa0d5a84764a9095310659043d))
12
+
3
13
  ## v0.100.0 (2024-09-01)
4
14
 
5
15
  ### Documentation
@@ -143,11 +153,3 @@
143
153
  ### Build
144
154
 
145
155
  * build: updated min version of bec qthemes ([`d482434`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d48243483ef8228cc5eb85e40a6b8f5da3b45520))
146
-
147
- ### Fix
148
-
149
- * fix(cmaps): unified all defaults to magma cmap ([`1ca9499`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/1ca9499edd334c19fe1e7aac71d3940a80a1ec95))
150
-
151
- * fix(color maps): color maps should take the background color into account; fixed min colors to 10 ([`060935f`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/060935ffc5472a958c337bf60834c5291f104ece))
152
-
153
- ## v0.99.2 (2024-08-27)
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 0.100.0
3
+ Version: 0.101.0
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
bec_widgets/cli/client.py CHANGED
@@ -26,6 +26,7 @@ class Widgets(str, enum.Enum):
26
26
  DeviceBrowser = "DeviceBrowser"
27
27
  DeviceComboBox = "DeviceComboBox"
28
28
  DeviceLineEdit = "DeviceLineEdit"
29
+ LMFitDialog = "LMFitDialog"
29
30
  PositionerBox = "PositionerBox"
30
31
  PositionerControlLine = "PositionerControlLine"
31
32
  ResetButton = "ResetButton"
@@ -1811,6 +1812,15 @@ class BECWaveform(RPCBase):
1811
1812
  BECCurve: The curve object.
1812
1813
  """
1813
1814
 
1815
+ @rpc_call
1816
+ def get_dap_params(self) -> "dict":
1817
+ """
1818
+ Get the DAP parameters of all DAP curves.
1819
+
1820
+ Returns:
1821
+ dict: DAP parameters of all DAP curves.
1822
+ """
1823
+
1814
1824
  @rpc_call
1815
1825
  def set_x(self, x_name: "str", x_entry: "str | None" = None):
1816
1826
  """
@@ -1825,15 +1835,6 @@ class BECWaveform(RPCBase):
1825
1835
  x_entry(str): Entry of the x signal.
1826
1836
  """
1827
1837
 
1828
- @rpc_call
1829
- def get_dap_params(self) -> "dict":
1830
- """
1831
- Get the DAP parameters of all DAP curves.
1832
-
1833
- Returns:
1834
- dict: DAP parameters of all DAP curves.
1835
- """
1836
-
1837
1838
  @rpc_call
1838
1839
  def remove_curve(self, *identifiers):
1839
1840
  """
@@ -2096,10 +2097,10 @@ class BECWaveformWidget(RPCBase):
2096
2097
  self,
2097
2098
  x_name: "str",
2098
2099
  y_name: "str",
2100
+ dap: "str",
2099
2101
  x_entry: "str | None" = None,
2100
2102
  y_entry: "str | None" = None,
2101
2103
  color: "str | None" = None,
2102
- dap: "str" = "GaussianModel",
2103
2104
  validate_bec: "bool" = True,
2104
2105
  **kwargs,
2105
2106
  ) -> "BECCurve":
@@ -2313,7 +2314,7 @@ class BECWaveformWidget(RPCBase):
2313
2314
 
2314
2315
  class DarkModeButton(RPCBase):
2315
2316
  @rpc_call
2316
- def toggle_dark_mode(self) -> None:
2317
+ def toggle_dark_mode(self) -> "None":
2317
2318
  """
2318
2319
  Toggle the dark mode state. This will change the theme of the entire
2319
2320
  application to dark or light mode.
@@ -2392,6 +2393,24 @@ class DeviceLineEdit(RPCBase):
2392
2393
  """
2393
2394
 
2394
2395
 
2396
+ class LMFitDialog(RPCBase):
2397
+ @property
2398
+ @rpc_call
2399
+ def _config_dict(self) -> "dict":
2400
+ """
2401
+ Get the configuration of the widget.
2402
+
2403
+ Returns:
2404
+ dict: The configuration of the widget.
2405
+ """
2406
+
2407
+ @rpc_call
2408
+ def _get_all_rpc(self) -> "dict":
2409
+ """
2410
+ Get all registered RPC objects.
2411
+ """
2412
+
2413
+
2395
2414
  class PositionerBox(RPCBase):
2396
2415
  @rpc_call
2397
2416
  def set_positioner(self, positioner: "str | Positioner"):
@@ -49,8 +49,8 @@ class BECWaveform(BECPlotBase):
49
49
  "_config_dict",
50
50
  "plot",
51
51
  "add_dap",
52
- "set_x",
53
52
  "get_dap_params",
53
+ "set_x",
54
54
  "remove_curve",
55
55
  "scan_history",
56
56
  "curves",
@@ -74,8 +74,8 @@ class BECWaveform(BECPlotBase):
74
74
  ]
75
75
  scan_signal_update = pyqtSignal()
76
76
  async_signal_update = pyqtSignal()
77
- dap_params_update = pyqtSignal(dict)
78
- dap_summary_update = pyqtSignal(dict)
77
+ dap_params_update = pyqtSignal(dict, dict)
78
+ dap_summary_update = pyqtSignal(dict, dict)
79
79
  autorange_signal = pyqtSignal()
80
80
  new_scan = pyqtSignal()
81
81
 
@@ -1085,8 +1085,9 @@ class BECWaveform(BECPlotBase):
1085
1085
  curve.setData(x, y)
1086
1086
  curve.dap_params = msg["data"][1]["fit_parameters"]
1087
1087
  curve.dap_summary = msg["data"][1]["fit_summary"]
1088
- self.dap_params_update.emit(curve.dap_params)
1089
- self.dap_summary_update.emit(curve.dap_summary)
1088
+ metadata.update({"curve_id": curve_id_request})
1089
+ self.dap_params_update.emit(curve.dap_params, metadata)
1090
+ self.dap_summary_update.emit(curve.dap_summary, metadata)
1090
1091
  break
1091
1092
 
1092
1093
  @Slot(dict, dict)
File without changes
@@ -0,0 +1 @@
1
+ {'files': ['lmfit_dialog.py']}
@@ -0,0 +1,54 @@
1
+ # Copyright (C) 2022 The Qt Company Ltd.
2
+ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
+
4
+ from qtpy.QtDesigner import QDesignerCustomWidgetInterface
5
+
6
+ from bec_widgets.utils.bec_designer import designer_material_icon
7
+ from bec_widgets.widgets.lmfit_dialog.lmfit_dialog import LMFitDialog
8
+
9
+ DOM_XML = """
10
+ <ui language='c++'>
11
+ <widget class='LMFitDialog' name='lm_fit_dialog'>
12
+ </widget>
13
+ </ui>
14
+ """
15
+
16
+
17
+ class LMFitDialogPlugin(QDesignerCustomWidgetInterface): # pragma: no cover
18
+ def __init__(self):
19
+ super().__init__()
20
+ self._form_editor = None
21
+
22
+ def createWidget(self, parent):
23
+ t = LMFitDialog(parent)
24
+ return t
25
+
26
+ def domXml(self):
27
+ return DOM_XML
28
+
29
+ def group(self):
30
+ return "BEC Utils"
31
+
32
+ def icon(self):
33
+ return designer_material_icon(LMFitDialog.ICON_NAME)
34
+
35
+ def includeFile(self):
36
+ return "lm_fit_dialog"
37
+
38
+ def initialize(self, form_editor):
39
+ self._form_editor = form_editor
40
+
41
+ def isContainer(self):
42
+ return False
43
+
44
+ def isInitialized(self):
45
+ return self._form_editor is not None
46
+
47
+ def name(self):
48
+ return "LMFitDialog"
49
+
50
+ def toolTip(self):
51
+ return "LMFitDialog"
52
+
53
+ def whatsThis(self):
54
+ return self.toolTip()
@@ -0,0 +1,194 @@
1
+ import os
2
+
3
+ from bec_lib.endpoints import MessageEndpoints
4
+ from bec_lib.logger import bec_logger
5
+ from qtpy.QtCore import Property, Signal, Slot
6
+ from qtpy.QtWidgets import QTreeWidgetItem, QVBoxLayout, QWidget
7
+
8
+ from bec_widgets.utils import UILoader
9
+ from bec_widgets.utils.bec_widget import BECWidget
10
+
11
+ logger = bec_logger.logger
12
+
13
+
14
+ class LMFitDialog(BECWidget, QWidget):
15
+ """Dialog for displaying the fit summary and params for LMFit DAP processes"""
16
+
17
+ ICON_NAME = "monitoring"
18
+ selected_fit = Signal(str)
19
+
20
+ def __init__(
21
+ self,
22
+ parent=None,
23
+ client=None,
24
+ config=None,
25
+ target_widget=None,
26
+ gui_id: str | None = None,
27
+ ui_file="lmfit_dialog_vertical.ui",
28
+ ):
29
+ """
30
+ Initialises the LMFitDialog widget.
31
+
32
+ Args:
33
+ parent (QWidget): The parent widget.
34
+ client: BEC client object.
35
+ config: Configuration of the widget.
36
+ target_widget: The widget that the settings will be taken from and applied to.
37
+ gui_id (str): GUI ID.
38
+ ui_file (str): The UI file to be loaded.
39
+ """
40
+ super().__init__(client=client, config=config, gui_id=gui_id)
41
+ QWidget.__init__(self, parent=parent)
42
+ self._ui_file = ui_file
43
+ self.target_widget = target_widget
44
+
45
+ current_path = os.path.dirname(__file__)
46
+ self.ui = UILoader(self).loader(os.path.join(current_path, self._ui_file))
47
+ self.layout = QVBoxLayout(self)
48
+ self.layout.addWidget(self.ui)
49
+ self.summary_data = {}
50
+ self._fit_curve_id = None
51
+ self._deci_precision = 3
52
+ self.ui.curve_list.currentItemChanged.connect(self.display_fit_details)
53
+ self.layout.setContentsMargins(0, 0, 0, 0)
54
+ self.setLayout(self.layout)
55
+
56
+ @Property(bool)
57
+ def hide_curve_selection(self):
58
+ """Property for showing the curve selection."""
59
+ return not self.ui.group_curve_selection.isVisible()
60
+
61
+ @hide_curve_selection.setter
62
+ def hide_curve_selection(self, show: bool):
63
+ """Setter for showing the curve selection.
64
+
65
+ Args:
66
+ show (bool): Whether to show the curve selection.
67
+ """
68
+ self.ui.group_curve_selection.setVisible(not show)
69
+
70
+ @property
71
+ def fit_curve_id(self):
72
+ """Property for the currently displayed fit curve_id."""
73
+ return self._fit_curve_id
74
+
75
+ @fit_curve_id.setter
76
+ def fit_curve_id(self, curve_id: str):
77
+ """Setter for the currently displayed fit curve_id.
78
+
79
+ Args:
80
+ fit_curve_id (str): The curve_id of the fit curve to be displayed.
81
+ """
82
+ self._fit_curve_id = curve_id
83
+ self.selected_fit.emit(curve_id)
84
+
85
+ @Slot(str)
86
+ def remove_dap_data(self, curve_id: str):
87
+ """Remove the DAP data for the given curve_id.
88
+
89
+ Args:
90
+ curve_id (str): The curve_id of the DAP data to be removed.
91
+ """
92
+ self.summary_data.pop(curve_id, None)
93
+ self.refresh_curve_list()
94
+
95
+ @Slot(str)
96
+ def select_curve(self, curve_id: str):
97
+ """Select active curve_id in the curve list.
98
+
99
+ Args:
100
+ curve_id (str): curve_id to be selected.
101
+ """
102
+ self.fit_curve_id = curve_id
103
+
104
+ @Slot(dict, dict)
105
+ def update_summary_tree(self, data: dict, metadata: dict):
106
+ """Update the summary tree with the given data.
107
+
108
+ Args:
109
+ data (dict): Data for the DAP Summary.
110
+ metadata (dict): Metadata of the fit curve.
111
+ """
112
+ curve_id = metadata.get("curve_id", "")
113
+ self.summary_data.update({curve_id: data})
114
+ self.refresh_curve_list()
115
+ if self.fit_curve_id is None:
116
+ self.fit_curve_id = curve_id
117
+ if curve_id != self.fit_curve_id:
118
+ return
119
+ if data is None:
120
+ return
121
+ self.ui.summary_tree.clear()
122
+ properties = [
123
+ ("Model", data.get("model", "")),
124
+ ("Method", data.get("method", "")),
125
+ ("Chi-Squared", f"{data.get('chisqr', 0.0):.{self._deci_precision}f}"),
126
+ ("Reduced Chi-Squared", f"{data.get('redchi', 0.0):.{self._deci_precision}f}"),
127
+ ("R-Squared", f"{data.get('rsquared', 0.0):.{self._deci_precision}f}"),
128
+ ("Message", data.get("message", "")),
129
+ ]
130
+ for prop, val in properties:
131
+ QTreeWidgetItem(self.ui.summary_tree, [prop, val])
132
+ self.update_param_tree(data.get("params", []))
133
+
134
+ def _update_summary_data(self, curve_id: str, data: dict):
135
+ """Update the summary data with the given data.
136
+
137
+ Args:
138
+ curve_id (str): The curve_id of the fit curve.
139
+ data (dict): The data to be updated.
140
+ """
141
+ self.summary_data.update({curve_id: data})
142
+ if self.fit_curve_id is not None:
143
+ return
144
+ self.fit_curve_id = curve_id
145
+
146
+ def update_param_tree(self, params):
147
+ """Update the parameter tree with the given parameters.
148
+
149
+ Args:
150
+ params (list): List of LMFit parameters for the fit curve.
151
+ """
152
+ self.ui.param_tree.clear()
153
+ for param in params:
154
+ param_name, param_value, param_std = (
155
+ param[0],
156
+ f"{param[1]:.{self._deci_precision}f}",
157
+ f"{param[7]:.{self._deci_precision}f}",
158
+ )
159
+ QTreeWidgetItem(self.ui.param_tree, [param_name, param_value, param_std])
160
+
161
+ def populate_curve_list(self):
162
+ """Populate the curve list with the available fit curves."""
163
+ for curve_name in self.summary_data.keys():
164
+ self.ui.curve_list.addItem(curve_name)
165
+
166
+ def refresh_curve_list(self):
167
+ """Refresh the curve list with the updated data."""
168
+ self.ui.curve_list.clear()
169
+ self.populate_curve_list()
170
+
171
+ def display_fit_details(self, current):
172
+ """Callback for displaying the fit details of the selected curve.
173
+
174
+ Args:
175
+ current: The current item in the curve list.
176
+ """
177
+ if current:
178
+ curve_name = current.text()
179
+ self.fit_curve_id = curve_name
180
+ data = self.summary_data[curve_name]
181
+ if data is None:
182
+ return
183
+ self.update_summary_tree(data, {"curve_id": curve_name})
184
+
185
+
186
+ if __name__ == "__main__":
187
+ import sys
188
+
189
+ from qtpy.QtWidgets import QApplication
190
+
191
+ app = QApplication(sys.argv)
192
+ dialog = LMFitDialog()
193
+ dialog.show()
194
+ sys.exit(app.exec_())
@@ -0,0 +1,120 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>Form</class>
4
+ <widget class="QWidget" name="Form">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>655</width>
10
+ <height>520</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>Form</string>
15
+ </property>
16
+ <layout class="QGridLayout" name="gridLayout">
17
+ <item row="0" column="0">
18
+ <widget class="QSplitter" name="splitter_2">
19
+ <property name="sizePolicy">
20
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
21
+ <horstretch>1</horstretch>
22
+ <verstretch>0</verstretch>
23
+ </sizepolicy>
24
+ </property>
25
+ <property name="frameShape">
26
+ <enum>QFrame::Shape::VLine</enum>
27
+ </property>
28
+ <property name="frameShadow">
29
+ <enum>QFrame::Shadow::Plain</enum>
30
+ </property>
31
+ <property name="lineWidth">
32
+ <number>1</number>
33
+ </property>
34
+ <property name="orientation">
35
+ <enum>Qt::Orientation::Horizontal</enum>
36
+ </property>
37
+ <property name="opaqueResize">
38
+ <bool>true</bool>
39
+ </property>
40
+ <property name="childrenCollapsible">
41
+ <bool>true</bool>
42
+ </property>
43
+ <widget class="QGroupBox" name="group_curve_selection">
44
+ <property name="title">
45
+ <string>Select Curve</string>
46
+ </property>
47
+ <layout class="QVBoxLayout" name="verticalLayout">
48
+ <item>
49
+ <widget class="QListWidget" name="curve_list"/>
50
+ </item>
51
+ </layout>
52
+ </widget>
53
+ <widget class="QSplitter" name="splitter">
54
+ <property name="sizePolicy">
55
+ <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
56
+ <horstretch>2</horstretch>
57
+ <verstretch>0</verstretch>
58
+ </sizepolicy>
59
+ </property>
60
+ <property name="orientation">
61
+ <enum>Qt::Orientation::Vertical</enum>
62
+ </property>
63
+ <widget class="QGroupBox" name="group_summary">
64
+ <property name="title">
65
+ <string>Fit Summary</string>
66
+ </property>
67
+ <layout class="QVBoxLayout" name="verticalLayout_2">
68
+ <item>
69
+ <widget class="QTreeWidget" name="summary_tree">
70
+ <property name="uniformRowHeights">
71
+ <bool>false</bool>
72
+ </property>
73
+ <column>
74
+ <property name="text">
75
+ <string>Property</string>
76
+ </property>
77
+ </column>
78
+ <column>
79
+ <property name="text">
80
+ <string>Value</string>
81
+ </property>
82
+ </column>
83
+ </widget>
84
+ </item>
85
+ </layout>
86
+ </widget>
87
+ <widget class="QGroupBox" name="group_parameters">
88
+ <property name="title">
89
+ <string>Parameter Details</string>
90
+ </property>
91
+ <layout class="QVBoxLayout" name="verticalLayout_3">
92
+ <item>
93
+ <widget class="QTreeWidget" name="param_tree">
94
+ <column>
95
+ <property name="text">
96
+ <string>Parameter</string>
97
+ </property>
98
+ </column>
99
+ <column>
100
+ <property name="text">
101
+ <string>Value</string>
102
+ </property>
103
+ </column>
104
+ <column>
105
+ <property name="text">
106
+ <string>Std</string>
107
+ </property>
108
+ </column>
109
+ </widget>
110
+ </item>
111
+ </layout>
112
+ </widget>
113
+ </widget>
114
+ </widget>
115
+ </item>
116
+ </layout>
117
+ </widget>
118
+ <resources/>
119
+ <connections/>
120
+ </ui>
@@ -0,0 +1,147 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>Form</class>
4
+ <widget class="QWidget" name="Form">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>274</width>
10
+ <height>568</height>
11
+ </rect>
12
+ </property>
13
+ <property name="sizePolicy">
14
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
15
+ <horstretch>0</horstretch>
16
+ <verstretch>0</verstretch>
17
+ </sizepolicy>
18
+ </property>
19
+ <property name="windowTitle">
20
+ <string>Form</string>
21
+ </property>
22
+ <layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,0">
23
+ <item>
24
+ <widget class="QGroupBox" name="group_curve_selection">
25
+ <property name="title">
26
+ <string>Select Curve</string>
27
+ </property>
28
+ <layout class="QVBoxLayout" name="verticalLayout" stretch="3">
29
+ <item>
30
+ <widget class="QListWidget" name="curve_list"/>
31
+ </item>
32
+ </layout>
33
+ </widget>
34
+ </item>
35
+ <item>
36
+ <widget class="QGroupBox" name="group_summary">
37
+ <property name="sizePolicy">
38
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
39
+ <horstretch>0</horstretch>
40
+ <verstretch>0</verstretch>
41
+ </sizepolicy>
42
+ </property>
43
+ <property name="minimumSize">
44
+ <size>
45
+ <width>250</width>
46
+ <height>200</height>
47
+ </size>
48
+ </property>
49
+ <property name="title">
50
+ <string>Fit Summary</string>
51
+ </property>
52
+ <layout class="QVBoxLayout" name="verticalLayout_2">
53
+ <item>
54
+ <widget class="QTreeWidget" name="summary_tree">
55
+ <property name="sizePolicy">
56
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
57
+ <horstretch>0</horstretch>
58
+ <verstretch>0</verstretch>
59
+ </sizepolicy>
60
+ </property>
61
+ <property name="minimumSize">
62
+ <size>
63
+ <width>0</width>
64
+ <height>0</height>
65
+ </size>
66
+ </property>
67
+ <property name="uniformRowHeights">
68
+ <bool>false</bool>
69
+ </property>
70
+ <attribute name="headerDefaultSectionSize">
71
+ <number>80</number>
72
+ </attribute>
73
+ <column>
74
+ <property name="text">
75
+ <string>Property</string>
76
+ </property>
77
+ </column>
78
+ <column>
79
+ <property name="text">
80
+ <string>Value</string>
81
+ </property>
82
+ </column>
83
+ </widget>
84
+ </item>
85
+ </layout>
86
+ </widget>
87
+ </item>
88
+ <item>
89
+ <widget class="QGroupBox" name="group_parameters">
90
+ <property name="sizePolicy">
91
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
92
+ <horstretch>0</horstretch>
93
+ <verstretch>0</verstretch>
94
+ </sizepolicy>
95
+ </property>
96
+ <property name="minimumSize">
97
+ <size>
98
+ <width>250</width>
99
+ <height>200</height>
100
+ </size>
101
+ </property>
102
+ <property name="title">
103
+ <string>Parameter Details</string>
104
+ </property>
105
+ <layout class="QVBoxLayout" name="verticalLayout_3">
106
+ <item>
107
+ <widget class="QTreeWidget" name="param_tree">
108
+ <property name="sizePolicy">
109
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
110
+ <horstretch>0</horstretch>
111
+ <verstretch>0</verstretch>
112
+ </sizepolicy>
113
+ </property>
114
+ <property name="minimumSize">
115
+ <size>
116
+ <width>0</width>
117
+ <height>0</height>
118
+ </size>
119
+ </property>
120
+ <attribute name="headerDefaultSectionSize">
121
+ <number>80</number>
122
+ </attribute>
123
+ <column>
124
+ <property name="text">
125
+ <string>Parameter</string>
126
+ </property>
127
+ </column>
128
+ <column>
129
+ <property name="text">
130
+ <string>Value</string>
131
+ </property>
132
+ </column>
133
+ <column>
134
+ <property name="text">
135
+ <string>Std</string>
136
+ </property>
137
+ </column>
138
+ </widget>
139
+ </item>
140
+ </layout>
141
+ </widget>
142
+ </item>
143
+ </layout>
144
+ </widget>
145
+ <resources/>
146
+ <connections/>
147
+ </ui>
@@ -0,0 +1,15 @@
1
+ def main(): # pragma: no cover
2
+ from qtpy import PYSIDE6
3
+
4
+ if not PYSIDE6:
5
+ print("PYSIDE6 is not available in the environment. Cannot patch designer.")
6
+ return
7
+ from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection
8
+
9
+ from bec_widgets.widgets.lmfit_dialog.lm_fit_dialog_plugin import LMFitDialogPlugin
10
+
11
+ QPyDesignerCustomWidgetCollection.addCustomWidget(LMFitDialogPlugin())
12
+
13
+
14
+ if __name__ == "__main__": # pragma: no cover
15
+ main()
@@ -4,66 +4,26 @@ from qtpy.QtWidgets import QDialog, QTreeWidgetItem, QVBoxLayout
4
4
 
5
5
  from bec_widgets.qt_utils.error_popups import SafeSlot as Slot
6
6
  from bec_widgets.utils import UILoader
7
+ from bec_widgets.widgets.lmfit_dialog.lmfit_dialog import LMFitDialog
7
8
 
8
9
 
9
10
  class FitSummaryWidget(QDialog):
11
+
10
12
  def __init__(self, parent=None, target_widget=None):
11
13
  super().__init__(parent=parent)
12
14
 
13
- self.target_widget = target_widget
14
- self.summary_data = self.target_widget.get_dap_summary()
15
-
16
15
  self.setModal(True)
17
-
18
- current_path = os.path.dirname(__file__)
19
- self.ui = UILoader(self).loader(os.path.join(current_path, "dap_summary.ui"))
16
+ self.target_widget = target_widget
17
+ self.dap_dialog = LMFitDialog(parent=self, ui_file="lmfit_dialog_compact.ui")
20
18
  self.layout = QVBoxLayout(self)
21
- self.layout.addWidget(self.ui)
22
-
23
- self.ui.curve_list.currentItemChanged.connect(self.display_fit_details)
24
- self.ui.refresh_button.clicked.connect(self.refresh_dap)
25
-
26
- self.populate_curve_list()
27
-
28
- def populate_curve_list(self):
29
- for curve_name in self.summary_data.keys():
30
- self.ui.curve_list.addItem(curve_name)
31
-
32
- def display_fit_details(self, current):
33
- if current:
34
- curve_name = current.text()
35
- data = self.summary_data[curve_name]
36
- if data is None:
37
- return
38
- self.refresh_trees(data)
39
-
40
- @Slot()
41
- def refresh_dap(self):
42
- self.ui.curve_list.clear()
43
- self.summary_data = self.target_widget.get_dap_summary()
44
- self.populate_curve_list()
45
-
46
- def refresh_trees(self, data):
47
- self.update_summary_tree(data)
48
- self.update_param_tree(data["params"])
49
-
50
- def update_summary_tree(self, data):
51
- self.ui.summary_tree.clear()
52
- properties = [
53
- ("Model", data.get("model", "")),
54
- ("Method", data.get("method", "")),
55
- ("Chi-Squared", str(data.get("chisqr", ""))),
56
- ("Reduced Chi-Squared", str(data.get("redchi", ""))),
57
- ("AIC", str(data.get("aic", ""))),
58
- ("BIC", str(data.get("bic", ""))),
59
- ("R-Squared", str(data.get("rsquared", ""))),
60
- ("Message", data.get("message", "")),
61
- ]
62
- for prop, val in properties:
63
- QTreeWidgetItem(self.ui.summary_tree, [prop, val])
64
-
65
- def update_param_tree(self, params):
66
- self.ui.param_tree.clear()
67
- for param in params:
68
- param_name, param_value, param_std = param[0], str(param[1]), str(param[7])
69
- QTreeWidgetItem(self.ui.param_tree, [param_name, param_value, param_std])
19
+ self.layout.addWidget(self.dap_dialog)
20
+ self.target_widget.dap_summary_update.connect(self.dap_dialog.update_summary_tree)
21
+ self.setLayout(self.layout)
22
+ self._get_dap_from_target_widget()
23
+
24
+ def _get_dap_from_target_widget(self) -> None:
25
+ """Get the DAP data from the target widget and update the DAP dialog manually on creation."""
26
+ dap_summary = self.target_widget.get_dap_summary()
27
+ for curve_id, data in dap_summary.items():
28
+ md = {"curve_id": curve_id}
29
+ self.dap_dialog.update_summary_tree(data=data, metadata=md)
@@ -55,8 +55,8 @@ class BECWaveformWidget(BECWidget, QWidget):
55
55
  ]
56
56
  scan_signal_update = Signal()
57
57
  async_signal_update = Signal()
58
- dap_params_update = Signal(dict)
59
- dap_summary_update = Signal(dict)
58
+ dap_summary_update = Signal(dict, dict)
59
+ dap_params_update = Signal(dict, dict)
60
60
  autorange_signal = Signal()
61
61
  new_scan = Signal()
62
62
  crosshair_position_changed = Signal(tuple)
@@ -218,7 +218,7 @@ class BECWaveformWidget(BECWidget, QWidget):
218
218
  def show_fit_summary_dialog(self):
219
219
  dialog = FitSummaryWidget(target_widget=self)
220
220
  dialog.resize(800, 600)
221
- dialog.show()
221
+ dialog.exec()
222
222
 
223
223
  ###################################
224
224
  # User Access Methods from Waveform
@@ -257,7 +257,7 @@ class BECWaveformWidget(BECWidget, QWidget):
257
257
  """
258
258
  self.waveform.set_colormap(colormap)
259
259
 
260
- @SafeSlot(popup_error=True)
260
+ @SafeSlot(str, popup_error=True)
261
261
  def set_x(self, x_name: str, x_entry: str | None = None):
262
262
  """
263
263
  Change the x axis of the plot widget.
@@ -272,7 +272,7 @@ class BECWaveformWidget(BECWidget, QWidget):
272
272
  """
273
273
  self.waveform.set_x(x_name, x_entry)
274
274
 
275
- @SafeSlot(popup_error=True)
275
+ @SafeSlot(str, popup_error=True)
276
276
  def plot(
277
277
  self,
278
278
  arg1: list | np.ndarray | str | None = None,
@@ -331,15 +331,16 @@ class BECWaveformWidget(BECWidget, QWidget):
331
331
  **kwargs,
332
332
  )
333
333
 
334
- @SafeSlot(popup_error=True)
334
+ @SafeSlot(str, str, str, popup_error=True)
335
335
  def add_dap(
336
336
  self,
337
337
  x_name: str,
338
338
  y_name: str,
339
+ dap: str,
339
340
  x_entry: str | None = None,
340
341
  y_entry: str | None = None,
341
342
  color: str | None = None,
342
- dap: str = "GaussianModel",
343
+ # dap: str = "GaussianModel",
343
344
  validate_bec: bool = True,
344
345
  **kwargs,
345
346
  ) -> BECCurve:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 0.100.0
3
+ Version: 0.101.0
4
4
  Summary: BEC Widgets
5
5
  Project-URL: Bug Tracker, https://gitlab.psi.ch/bec/bec_widgets/issues
6
6
  Project-URL: Homepage, https://gitlab.psi.ch/bec/bec_widgets
@@ -2,11 +2,11 @@
2
2
  .gitlab-ci.yml,sha256=HE_stq5wl-0wE5ZetfEmaaDbectk20jX7Z2cxwsBegg,8348
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=4klTHcSrZVAZ03F0WQ1nRQLwGgHsyFC3ZrYuz_X9HdE,6664
5
+ CHANGELOG.md,sha256=6RUIXVV1FuM3_7TuNkxIHYQddeGb56Fx1mIlcTI29ss,6594
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=lYGRB6sUQh1tCnb-JCVMuNj2wLacFwAud4ub2-tQsOQ,1334
7
+ PKG-INFO,sha256=Mikp7NvbMPYwdD8rtGYW_lMVdY0B8HmOsnlVF-fy5mA,1334
8
8
  README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
9
- pyproject.toml,sha256=5WM5Q3BsITnjKAY0Cij4nOk6WK8lTHot7e3wQVWbRfc,2544
9
+ pyproject.toml,sha256=D8jXP_3VO8qU5fKbBIS7LRgam7O3evOJvLkkPvanF3A,2544
10
10
  .git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
11
11
  .gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
12
12
  .gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
@@ -22,7 +22,7 @@ bec_widgets/assets/status_icons/running.svg,sha256=nlc6rKh_f-uOxQSk0BkBNyWnPAJU5
22
22
  bec_widgets/assets/status_icons/warning.svg,sha256=CNx88p9kbDG51s9ztKf-cfYan4JdDBbk3-IFKfOOFlI,364
23
23
  bec_widgets/cli/__init__.py,sha256=d0Q6Fn44e7wFfLabDOBxpcJ1DPKWlFunGYDUBmO-4hA,22
24
24
  bec_widgets/cli/auto_updates.py,sha256=DwzRChcFIWPH2kCYvp8H7dXvyYSKGYv6LwCmK2sDR2E,5676
25
- bec_widgets/cli/client.py,sha256=Go09tb7lnsDSljF-7rtWu4x8x_ooL-F4WWuu_yFaTNA,78098
25
+ bec_widgets/cli/client.py,sha256=Sajhkf2hQJICfMSsB3nGLW5X2y50jwK2ICXxLSS4RXI,78465
26
26
  bec_widgets/cli/client_utils.py,sha256=l35LtTkD7PdvVCckjMU8-y6f5a5pp1u6cFPpD-Dkvow,11713
27
27
  bec_widgets/cli/generate_cli.py,sha256=Ea5px9KblUlcGg-1JbJBTIU7laGg2n8PM7Efw9WVVzM,5889
28
28
  bec_widgets/cli/rpc_register.py,sha256=QxXUZu5XNg00Yf5O3UHWOXg3-f_pzKjjoZYMOa-MOJc,2216
@@ -151,7 +151,7 @@ bec_widgets/widgets/figure/plots/image/image_processor.py,sha256=GeTtWjbldy6VejM
151
151
  bec_widgets/widgets/figure/plots/motor_map/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
152
  bec_widgets/widgets/figure/plots/motor_map/motor_map.py,sha256=wgARzsm98Y8SHPPwVp1LzNlXCxKEi6a8by8yYzIWsbY,18319
153
153
  bec_widgets/widgets/figure/plots/waveform/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
154
- bec_widgets/widgets/figure/plots/waveform/waveform.py,sha256=DE4cL1bSiSImaHLQPhc0dPVyj9hQRt7hr-aWO472OA0,51741
154
+ bec_widgets/widgets/figure/plots/waveform/waveform.py,sha256=TDPtS4s0Kc-1KPidymxW1JPLwV77dqZHO316GYfzu08,51841
155
155
  bec_widgets/widgets/figure/plots/waveform/waveform_curve.py,sha256=FlQFKm4r2xSrV9TSP0SWuD3lfAUO3COUHxMYz7Xxs5E,8653
156
156
  bec_widgets/widgets/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
157
  bec_widgets/widgets/image/bec_image_widget.pyproject,sha256=PHisdBo5_5UCApd27GkizzqgfdjsDx2bFZa_p9LiSW8,30
@@ -160,6 +160,13 @@ bec_widgets/widgets/image/image_widget.py,sha256=8a4nR9JsPstIJSBrFiA1nkazTSmYuXa
160
160
  bec_widgets/widgets/image/register_bec_image_widget.py,sha256=01YLZQTMSSIXvH1TSL-1AYsRs1a4EbSwKLVAwh9AjeA,478
161
161
  bec_widgets/widgets/jupyter_console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
162
162
  bec_widgets/widgets/jupyter_console/jupyter_console.py,sha256=-e7HQOECeH5eDrJYh4BFIzRL78LDkooU4otabyN0aX4,2343
163
+ bec_widgets/widgets/lmfit_dialog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
164
+ bec_widgets/widgets/lmfit_dialog/lm_fit_dialog.pyproject,sha256=PTvg1ddrW_R2_gd1cfA8UyxeVlgg5B-y71-F3lY6vKI,30
165
+ bec_widgets/widgets/lmfit_dialog/lm_fit_dialog_plugin.py,sha256=X73Wn6tBkRSfhBEbg0ZZGIMCG6ujkidoJMXTQPuk2Y8,1267
166
+ bec_widgets/widgets/lmfit_dialog/lmfit_dialog.py,sha256=0rUNECLs3S4hcqV115H87JQsqSWQLVb5S9iiCbG9PVs,6450
167
+ bec_widgets/widgets/lmfit_dialog/lmfit_dialog_compact.ui,sha256=JbdMEPzbA3p2Ekz6U6NwXs1BqdBr71NUJNVOnhrN1dE,3397
168
+ bec_widgets/widgets/lmfit_dialog/lmfit_dialog_vertical.ui,sha256=TS8FJSihTBShbx0QoXpCGAHEWVVwRxWsMazS8QxLrO4,4009
169
+ bec_widgets/widgets/lmfit_dialog/register_lm_fit_dialog.py,sha256=a96eq_Lm_QtC0DAEcDrnF5PLj1LsDtxfNtmku7YPNw8,476
163
170
  bec_widgets/widgets/motor_map/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
164
171
  bec_widgets/widgets/motor_map/bec_motor_map_widget.pyproject,sha256=NAI8s5gRKz80ED4KY7OgD2OgSH5HEsjt2ux2BYp66yg,63
165
172
  bec_widgets/widgets/motor_map/bec_motor_map_widget_plugin.py,sha256=jM-fxEfpkcyT1lNLvLDAntTcv_77KYWZC5Q4ykH0Y7I,1297
@@ -225,21 +232,20 @@ bec_widgets/widgets/waveform/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
225
232
  bec_widgets/widgets/waveform/bec_waveform_widget.pyproject,sha256=GLD8GN9dXx9wNbtnevrxqqcwk7vKV-Uv8QYSycdaoaI,33
226
233
  bec_widgets/widgets/waveform/bec_waveform_widget_plugin.py,sha256=qSQTeCzIUn8rgDkjIM47Rr3-fqg1uk8rDf_lCoY9gZw,1402
227
234
  bec_widgets/widgets/waveform/register_bec_waveform_widget.py,sha256=qZHVZH_lP2hvzkG1Ra0EyrXlMeLkRCy0aceH-bfJ1cs,490
228
- bec_widgets/widgets/waveform/waveform_widget.py,sha256=QBGv0qLP7FPc8uT3KF6_js2cOcgcdI_SHfqMri77U1s,22170
235
+ bec_widgets/widgets/waveform/waveform_widget.py,sha256=PCkJMPVtmdCTaa2PucDM91vDyW49xta04Ri5oFhTOi4,22227
229
236
  bec_widgets/widgets/waveform/waveform_popups/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
230
237
  bec_widgets/widgets/waveform/waveform_popups/curve_dialog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
231
238
  bec_widgets/widgets/waveform/waveform_popups/curve_dialog/curve_dialog.py,sha256=ApWv0n33TJBP59CQ4MUdyPRSiKfXjTdfui1IfwzFNjE,13172
232
239
  bec_widgets/widgets/waveform/waveform_popups/curve_dialog/curve_dialog.ui,sha256=OaQE5HlyBQ3RQoHqxOFHiUoNcx8SDZP5sHJ9NNGhsPI,10404
233
240
  bec_widgets/widgets/waveform/waveform_popups/dap_summary_dialog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
234
- bec_widgets/widgets/waveform/waveform_popups/dap_summary_dialog/dap_summary.ui,sha256=PFEKro61UXd-jmx65U4pqJ5D29DXtVnhQRnsnDvN-wM,6138
235
- bec_widgets/widgets/waveform/waveform_popups/dap_summary_dialog/dap_summary_dialog.py,sha256=UptWjHRVp7gTAMkWikfia3U6k8EV_pAvk-fI_vhWd2w,2437
241
+ bec_widgets/widgets/waveform/waveform_popups/dap_summary_dialog/dap_summary_dialog.py,sha256=XOHppMcONwfhAYpqIc51VOrpunWmPSn50sT3I0MjW2c,1173
236
242
  bec_widgets/widgets/website/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
237
243
  bec_widgets/widgets/website/register_website_widget.py,sha256=LIQJpV9uqcBiPR9cEAiDjaUS_l7JroYVdsotnLpD9H0,476
238
244
  bec_widgets/widgets/website/website.py,sha256=kDlqjwtx0yft1ZNRhTdHnYh_5KZHfqT_ZGPOKT4C-yI,2619
239
245
  bec_widgets/widgets/website/website_widget.pyproject,sha256=scOiV3cV1_BjbzpPzy2N8rIJL5P2qIZz8ObTJ-Uvdtg,25
240
246
  bec_widgets/widgets/website/website_widget_plugin.py,sha256=pz38_C2cZ0yvPPS02wdIPcmhFo_yiwUhflsASocAPQQ,1341
241
- bec_widgets-0.100.0.dist-info/METADATA,sha256=lYGRB6sUQh1tCnb-JCVMuNj2wLacFwAud4ub2-tQsOQ,1334
242
- bec_widgets-0.100.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
243
- bec_widgets-0.100.0.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
244
- bec_widgets-0.100.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
245
- bec_widgets-0.100.0.dist-info/RECORD,,
247
+ bec_widgets-0.101.0.dist-info/METADATA,sha256=Mikp7NvbMPYwdD8rtGYW_lMVdY0B8HmOsnlVF-fy5mA,1334
248
+ bec_widgets-0.101.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
249
+ bec_widgets-0.101.0.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
250
+ bec_widgets-0.101.0.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
251
+ bec_widgets-0.101.0.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bec_widgets"
7
- version = "0.100.0"
7
+ version = "0.101.0"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [
@@ -1,127 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <ui version="4.0">
3
- <class>Form</class>
4
- <widget class="QWidget" name="Form">
5
- <property name="geometry">
6
- <rect>
7
- <x>0</x>
8
- <y>0</y>
9
- <width>800</width>
10
- <height>600</height>
11
- </rect>
12
- </property>
13
- <property name="windowTitle">
14
- <string>Form</string>
15
- </property>
16
- <layout class="QGridLayout" name="gridLayout">
17
- <item row="0" column="0">
18
- <widget class="QSplitter" name="splitter_2">
19
- <property name="sizePolicy">
20
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
21
- <horstretch>1</horstretch>
22
- <verstretch>0</verstretch>
23
- </sizepolicy>
24
- </property>
25
- <property name="frameShape">
26
- <enum>QFrame::Shape::VLine</enum>
27
- </property>
28
- <property name="frameShadow">
29
- <enum>QFrame::Shadow::Plain</enum>
30
- </property>
31
- <property name="lineWidth">
32
- <number>1</number>
33
- </property>
34
- <property name="orientation">
35
- <enum>Qt::Orientation::Horizontal</enum>
36
- </property>
37
- <property name="opaqueResize">
38
- <bool>true</bool>
39
- </property>
40
- <property name="childrenCollapsible">
41
- <bool>true</bool>
42
- </property>
43
- <widget class="QGroupBox" name="group_curve_selection">
44
- <property name="title">
45
- <string>Select Curve</string>
46
- </property>
47
- <layout class="QVBoxLayout" name="verticalLayout">
48
- <item>
49
- <widget class="QPushButton" name="refresh_button">
50
- <property name="text">
51
- <string>Refresh DAP Summary</string>
52
- </property>
53
- </widget>
54
- </item>
55
- <item>
56
- <widget class="QListWidget" name="curve_list"/>
57
- </item>
58
- </layout>
59
- </widget>
60
- <widget class="QSplitter" name="splitter">
61
- <property name="sizePolicy">
62
- <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
63
- <horstretch>2</horstretch>
64
- <verstretch>0</verstretch>
65
- </sizepolicy>
66
- </property>
67
- <property name="orientation">
68
- <enum>Qt::Orientation::Vertical</enum>
69
- </property>
70
- <widget class="QGroupBox" name="group_summary">
71
- <property name="title">
72
- <string>Fit Summary</string>
73
- </property>
74
- <layout class="QVBoxLayout" name="verticalLayout_2">
75
- <item>
76
- <widget class="QTreeWidget" name="summary_tree">
77
- <property name="uniformRowHeights">
78
- <bool>false</bool>
79
- </property>
80
- <column>
81
- <property name="text">
82
- <string>Property</string>
83
- </property>
84
- </column>
85
- <column>
86
- <property name="text">
87
- <string>Value</string>
88
- </property>
89
- </column>
90
- </widget>
91
- </item>
92
- </layout>
93
- </widget>
94
- <widget class="QGroupBox" name="group_parameters">
95
- <property name="title">
96
- <string>Parameter Details</string>
97
- </property>
98
- <layout class="QVBoxLayout" name="verticalLayout_3">
99
- <item>
100
- <widget class="QTreeWidget" name="param_tree">
101
- <column>
102
- <property name="text">
103
- <string>Parameter</string>
104
- </property>
105
- </column>
106
- <column>
107
- <property name="text">
108
- <string>Value</string>
109
- </property>
110
- </column>
111
- <column>
112
- <property name="text">
113
- <string>Std</string>
114
- </property>
115
- </column>
116
- </widget>
117
- </item>
118
- </layout>
119
- </widget>
120
- </widget>
121
- </widget>
122
- </item>
123
- </layout>
124
- </widget>
125
- <resources/>
126
- <connections/>
127
- </ui>