QInstrument 2.1.0__tar.gz → 2.3.2__tar.gz

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.
Files changed (136) hide show
  1. {qinstrument-2.1.0 → qinstrument-2.3.2}/PKG-INFO +3 -3
  2. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrument.egg-info/PKG-INFO +3 -3
  3. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrument.egg-info/SOURCES.txt +21 -4
  4. {qinstrument-2.1.0 → qinstrument-2.3.2}/README.md +2 -2
  5. qinstrument-2.3.2/instruments/IPGPhotonics/IPGLaser/IPGLaserWidget.ui +426 -0
  6. qinstrument-2.3.2/instruments/IPGPhotonics/IPGLaser/__init__.py +6 -0
  7. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/IPGPhotonics/IPGLaser/fake.py +3 -0
  8. qinstrument-2.3.2/instruments/Novanta/Opus/OpusWidget.ui +224 -0
  9. qinstrument-2.3.2/instruments/Novanta/Opus/__init__.py +6 -0
  10. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus/fake.py +9 -0
  11. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus/instrument.py +37 -6
  12. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus/widget.py +6 -9
  13. qinstrument-2.3.2/instruments/Novanta/Opus1064/__init__.py +10 -0
  14. qinstrument-2.3.2/instruments/Novanta/Opus532/__init__.py +10 -0
  15. qinstrument-2.3.2/instruments/Novanta/Opus660/__init__.py +10 -0
  16. qinstrument-2.3.2/instruments/PiezoDrive/PDUS210/__init__.py +6 -0
  17. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PriorScientific/Proscan/ProscanWidget.ui +90 -39
  18. qinstrument-2.3.2/instruments/PriorScientific/Proscan/__init__.py +6 -0
  19. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PriorScientific/Proscan/fake.py +30 -2
  20. qinstrument-2.3.2/instruments/PriorScientific/Proscan/instrument.py +569 -0
  21. qinstrument-2.3.2/instruments/PriorScientific/Proscan/widget.py +119 -0
  22. qinstrument-2.3.2/instruments/StanfordResearch/DS345/__init__.py +6 -0
  23. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/DS345/fake.py +3 -0
  24. qinstrument-2.3.2/instruments/StanfordResearch/SR830/__init__.py +6 -0
  25. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR830/fake.py +3 -0
  26. qinstrument-2.3.2/instruments/StanfordResearch/SR830/worker.py +38 -0
  27. qinstrument-2.3.2/instruments/StanfordResearch/SR844/__init__.py +6 -0
  28. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR844/fake.py +3 -0
  29. qinstrument-2.3.2/instruments/StanfordResearch/SR844/worker.py +38 -0
  30. qinstrument-2.3.2/instruments/Tektronix/TDS1000/__init__.py +6 -0
  31. qinstrument-2.3.2/instruments/__init__.py +38 -0
  32. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/Configure.py +24 -0
  33. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/QAbstractInstrument.py +16 -7
  34. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/QFakeInstrument.py +6 -1
  35. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/QInstrumentWidget.py +82 -13
  36. qinstrument-2.3.2/lib/QInstrumentWorker.py +111 -0
  37. qinstrument-2.3.2/lib/QReconcileDialog.py +99 -0
  38. qinstrument-2.3.2/lib/lazy.py +52 -0
  39. {qinstrument-2.1.0 → qinstrument-2.3.2}/pyproject.toml +1 -1
  40. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_Configure.py +30 -0
  41. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QAbstractInstrument.py +23 -0
  42. qinstrument-2.3.2/tests/test_QDS345.py +79 -0
  43. qinstrument-2.3.2/tests/test_QIPGLaser.py +164 -0
  44. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QInstrumentWidget.py +188 -1
  45. qinstrument-2.3.2/tests/test_QInstrumentWorker.py +162 -0
  46. qinstrument-2.3.2/tests/test_QOpus.py +138 -0
  47. qinstrument-2.3.2/tests/test_QPDUS210.py +121 -0
  48. qinstrument-2.3.2/tests/test_QProscan.py +175 -0
  49. qinstrument-2.3.2/tests/test_QSR830.py +73 -0
  50. qinstrument-2.3.2/tests/test_QSR830Worker.py +105 -0
  51. qinstrument-2.3.2/tests/test_QSR844.py +72 -0
  52. {qinstrument-2.1.0 → qinstrument-2.3.2}/widgets/QJoystick.py +70 -23
  53. qinstrument-2.3.2/widgets/QJoystickPad.py +427 -0
  54. {qinstrument-2.1.0 → qinstrument-2.3.2}/widgets/QLedWidget.py +46 -19
  55. {qinstrument-2.1.0 → qinstrument-2.3.2}/widgets/QRotaryEncoderSpinBox.py +9 -0
  56. {qinstrument-2.1.0 → qinstrument-2.3.2}/widgets/QRotaryEncoderSpinBox.ui +1 -8
  57. {qinstrument-2.1.0 → qinstrument-2.3.2}/widgets/__init__.py +1 -0
  58. qinstrument-2.1.0/instruments/IPGPhotonics/IPGLaser/IPGLaserWidget.ui +0 -421
  59. qinstrument-2.1.0/instruments/IPGPhotonics/IPGLaser/__init__.py +0 -11
  60. qinstrument-2.1.0/instruments/Novanta/Opus/OpusWidget.ui +0 -235
  61. qinstrument-2.1.0/instruments/Novanta/Opus/__init__.py +0 -11
  62. qinstrument-2.1.0/instruments/Novanta/Opus1064/__init__.py +0 -15
  63. qinstrument-2.1.0/instruments/Novanta/Opus532/__init__.py +0 -15
  64. qinstrument-2.1.0/instruments/Novanta/Opus660/__init__.py +0 -15
  65. qinstrument-2.1.0/instruments/PiezoDrive/PDUS210/__init__.py +0 -11
  66. qinstrument-2.1.0/instruments/PriorScientific/Proscan/__init__.py +0 -11
  67. qinstrument-2.1.0/instruments/PriorScientific/Proscan/instrument.py +0 -304
  68. qinstrument-2.1.0/instruments/PriorScientific/Proscan/widget.py +0 -60
  69. qinstrument-2.1.0/instruments/StanfordResearch/DS345/__init__.py +0 -11
  70. qinstrument-2.1.0/instruments/StanfordResearch/SR830/__init__.py +0 -11
  71. qinstrument-2.1.0/instruments/StanfordResearch/SR844/__init__.py +0 -11
  72. qinstrument-2.1.0/instruments/Tektronix/TDS1000/__init__.py +0 -11
  73. qinstrument-2.1.0/instruments/__init__.py +0 -10
  74. qinstrument-2.1.0/lib/QThreadedInstrumentWidget.py +0 -20
  75. qinstrument-2.1.0/lib/threadedInstrument.py +0 -24
  76. {qinstrument-2.1.0 → qinstrument-2.3.2}/LICENSE.md +0 -0
  77. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrument.egg-info/dependency_links.txt +0 -0
  78. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrument.egg-info/entry_points.txt +0 -0
  79. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrument.egg-info/requires.txt +0 -0
  80. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrument.egg-info/top_level.txt +0 -0
  81. {qinstrument-2.1.0 → qinstrument-2.3.2}/QInstrumentRack.py +0 -0
  82. {qinstrument-2.1.0 → qinstrument-2.3.2}/__init__.py +0 -0
  83. {qinstrument-2.1.0 → qinstrument-2.3.2}/__main__.py +0 -0
  84. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/IPGPhotonics/IPGLaser/instrument.py +0 -0
  85. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/IPGPhotonics/IPGLaser/tree.py +0 -0
  86. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/IPGPhotonics/IPGLaser/widget.py +0 -0
  87. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/IPGPhotonics/__init__.py +0 -0
  88. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus/tree.py +0 -0
  89. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus1064/fake.py +0 -0
  90. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus1064/instrument.py +0 -0
  91. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus1064/tree.py +0 -0
  92. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus1064/widget.py +0 -0
  93. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus532/fake.py +0 -0
  94. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus532/instrument.py +0 -0
  95. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus532/tree.py +0 -0
  96. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus532/widget.py +0 -0
  97. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus660/fake.py +0 -0
  98. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus660/instrument.py +0 -0
  99. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus660/tree.py +0 -0
  100. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/Opus660/widget.py +0 -0
  101. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Novanta/__init__.py +0 -0
  102. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PiezoDrive/PDUS210/PDUS210Widget.ui +0 -0
  103. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PiezoDrive/PDUS210/fake.py +0 -0
  104. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PiezoDrive/PDUS210/instrument.py +0 -0
  105. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PiezoDrive/PDUS210/tree.py +0 -0
  106. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PiezoDrive/PDUS210/widget.py +0 -0
  107. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PiezoDrive/__init__.py +0 -0
  108. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PriorScientific/Proscan/tree.py +0 -0
  109. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/PriorScientific/__init__.py +0 -0
  110. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/DS345/DS345Widget.ui +0 -0
  111. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/DS345/instrument.py +0 -0
  112. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/DS345/tree.py +0 -0
  113. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/DS345/widget.py +0 -0
  114. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR830/SR830Widget.ui +0 -0
  115. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR830/instrument.py +0 -0
  116. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR830/tree.py +0 -0
  117. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR830/widget.py +0 -0
  118. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR844/SR844Widget.ui +0 -0
  119. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR844/instrument.py +0 -0
  120. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR844/tree.py +0 -0
  121. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/SR844/widget.py +0 -0
  122. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/StanfordResearch/__init__.py +0 -0
  123. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Tektronix/TDS1000/instrument.py +0 -0
  124. {qinstrument-2.1.0 → qinstrument-2.3.2}/instruments/Tektronix/__init__.py +0 -0
  125. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/QInstrumentTree.py +0 -0
  126. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/QSerialInstrument.py +0 -0
  127. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/QSerialInterface.py +0 -0
  128. {qinstrument-2.1.0 → qinstrument-2.3.2}/lib/__init__.py +0 -0
  129. {qinstrument-2.1.0 → qinstrument-2.3.2}/setup.cfg +0 -0
  130. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QFakeInstrument.py +0 -0
  131. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QInstrumentRack.py +0 -0
  132. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QLedWidget.py +0 -0
  133. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QRotaryEncoderSpinBox.py +0 -0
  134. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QSerialInstrument.py +0 -0
  135. {qinstrument-2.1.0 → qinstrument-2.3.2}/tests/test_QSerialInterface.py +0 -0
  136. {qinstrument-2.1.0 → qinstrument-2.3.2}/widgets/QRotaryEncoder.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: QInstrument
3
- Version: 2.1.0
3
+ Version: 2.3.2
4
4
  Summary: Qt-based framework for controlling scientific instruments over serial ports
5
5
  Author-email: "David G. Grier" <david.grier@nyu.edu>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -139,7 +139,7 @@ simulated (fake) device so the UI is always usable.
139
139
 
140
140
  ```python
141
141
  from qtpy.QtWidgets import QApplication
142
- from QInstrument.instruments.DS345 import QDS345Widget
142
+ from QInstrument.instruments import QDS345Widget
143
143
 
144
144
  app = QApplication([])
145
145
  widget = QDS345Widget()
@@ -152,7 +152,7 @@ app.exec()
152
152
  When hardware is not available, pass a fake device directly:
153
153
 
154
154
  ```python
155
- from QInstrument.instruments.DS345 import QDS345Widget, QFakeDS345
155
+ from QInstrument.instruments import QDS345Widget, QFakeDS345
156
156
 
157
157
  app = QApplication([])
158
158
  widget = QDS345Widget(device=QFakeDS345())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: QInstrument
3
- Version: 2.1.0
3
+ Version: 2.3.2
4
4
  Summary: Qt-based framework for controlling scientific instruments over serial ports
5
5
  Author-email: "David G. Grier" <david.grier@nyu.edu>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -139,7 +139,7 @@ simulated (fake) device so the UI is always usable.
139
139
 
140
140
  ```python
141
141
  from qtpy.QtWidgets import QApplication
142
- from QInstrument.instruments.DS345 import QDS345Widget
142
+ from QInstrument.instruments import QDS345Widget
143
143
 
144
144
  app = QApplication([])
145
145
  widget = QDS345Widget()
@@ -152,7 +152,7 @@ app.exec()
152
152
  When hardware is not available, pass a fake device directly:
153
153
 
154
154
  ```python
155
- from QInstrument.instruments.DS345 import QDS345Widget, QFakeDS345
155
+ from QInstrument.instruments import QDS345Widget, QFakeDS345
156
156
 
157
157
  app = QApplication([])
158
158
  widget = QDS345Widget(device=QFakeDS345())
@@ -64,12 +64,14 @@ pyproject.toml
64
64
  ./instruments/StanfordResearch/SR830/instrument.py
65
65
  ./instruments/StanfordResearch/SR830/tree.py
66
66
  ./instruments/StanfordResearch/SR830/widget.py
67
+ ./instruments/StanfordResearch/SR830/worker.py
67
68
  ./instruments/StanfordResearch/SR844/SR844Widget.ui
68
69
  ./instruments/StanfordResearch/SR844/__init__.py
69
70
  ./instruments/StanfordResearch/SR844/fake.py
70
71
  ./instruments/StanfordResearch/SR844/instrument.py
71
72
  ./instruments/StanfordResearch/SR844/tree.py
72
73
  ./instruments/StanfordResearch/SR844/widget.py
74
+ ./instruments/StanfordResearch/SR844/worker.py
73
75
  ./instruments/Tektronix/__init__.py
74
76
  ./instruments/Tektronix/TDS1000/__init__.py
75
77
  ./instruments/Tektronix/TDS1000/instrument.py
@@ -78,12 +80,14 @@ pyproject.toml
78
80
  ./lib/QFakeInstrument.py
79
81
  ./lib/QInstrumentTree.py
80
82
  ./lib/QInstrumentWidget.py
83
+ ./lib/QInstrumentWorker.py
84
+ ./lib/QReconcileDialog.py
81
85
  ./lib/QSerialInstrument.py
82
86
  ./lib/QSerialInterface.py
83
- ./lib/QThreadedInstrumentWidget.py
84
87
  ./lib/__init__.py
85
- ./lib/threadedInstrument.py
88
+ ./lib/lazy.py
86
89
  ./widgets/QJoystick.py
90
+ ./widgets/QJoystickPad.py
87
91
  ./widgets/QLedWidget.py
88
92
  ./widgets/QRotaryEncoder.py
89
93
  ./widgets/QRotaryEncoderSpinBox.py
@@ -152,12 +156,14 @@ instruments/StanfordResearch/SR830/fake.py
152
156
  instruments/StanfordResearch/SR830/instrument.py
153
157
  instruments/StanfordResearch/SR830/tree.py
154
158
  instruments/StanfordResearch/SR830/widget.py
159
+ instruments/StanfordResearch/SR830/worker.py
155
160
  instruments/StanfordResearch/SR844/SR844Widget.ui
156
161
  instruments/StanfordResearch/SR844/__init__.py
157
162
  instruments/StanfordResearch/SR844/fake.py
158
163
  instruments/StanfordResearch/SR844/instrument.py
159
164
  instruments/StanfordResearch/SR844/tree.py
160
165
  instruments/StanfordResearch/SR844/widget.py
166
+ instruments/StanfordResearch/SR844/worker.py
161
167
  instruments/Tektronix/__init__.py
162
168
  instruments/Tektronix/TDS1000/__init__.py
163
169
  instruments/Tektronix/TDS1000/instrument.py
@@ -166,21 +172,32 @@ lib/QAbstractInstrument.py
166
172
  lib/QFakeInstrument.py
167
173
  lib/QInstrumentTree.py
168
174
  lib/QInstrumentWidget.py
175
+ lib/QInstrumentWorker.py
176
+ lib/QReconcileDialog.py
169
177
  lib/QSerialInstrument.py
170
178
  lib/QSerialInterface.py
171
- lib/QThreadedInstrumentWidget.py
172
179
  lib/__init__.py
173
- lib/threadedInstrument.py
180
+ lib/lazy.py
174
181
  tests/test_Configure.py
175
182
  tests/test_QAbstractInstrument.py
183
+ tests/test_QDS345.py
176
184
  tests/test_QFakeInstrument.py
185
+ tests/test_QIPGLaser.py
177
186
  tests/test_QInstrumentRack.py
178
187
  tests/test_QInstrumentWidget.py
188
+ tests/test_QInstrumentWorker.py
179
189
  tests/test_QLedWidget.py
190
+ tests/test_QOpus.py
191
+ tests/test_QPDUS210.py
192
+ tests/test_QProscan.py
180
193
  tests/test_QRotaryEncoderSpinBox.py
194
+ tests/test_QSR830.py
195
+ tests/test_QSR830Worker.py
196
+ tests/test_QSR844.py
181
197
  tests/test_QSerialInstrument.py
182
198
  tests/test_QSerialInterface.py
183
199
  widgets/QJoystick.py
200
+ widgets/QJoystickPad.py
184
201
  widgets/QLedWidget.py
185
202
  widgets/QRotaryEncoder.py
186
203
  widgets/QRotaryEncoderSpinBox.py
@@ -85,7 +85,7 @@ simulated (fake) device so the UI is always usable.
85
85
 
86
86
  ```python
87
87
  from qtpy.QtWidgets import QApplication
88
- from QInstrument.instruments.DS345 import QDS345Widget
88
+ from QInstrument.instruments import QDS345Widget
89
89
 
90
90
  app = QApplication([])
91
91
  widget = QDS345Widget()
@@ -98,7 +98,7 @@ app.exec()
98
98
  When hardware is not available, pass a fake device directly:
99
99
 
100
100
  ```python
101
- from QInstrument.instruments.DS345 import QDS345Widget, QFakeDS345
101
+ from QInstrument.instruments import QDS345Widget, QFakeDS345
102
102
 
103
103
  app = QApplication([])
104
104
  widget = QDS345Widget(device=QFakeDS345())
@@ -0,0 +1,426 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>IPGLaserWidget</class>
4
+ <widget class="QWidget" name="IPGLaserWidget">
5
+ <property name="windowTitle">
6
+ <string>IPG Laser</string>
7
+ </property>
8
+ <layout class="QVBoxLayout" name="outerLayout">
9
+ <property name="spacing">
10
+ <number>2</number>
11
+ </property>
12
+ <property name="leftMargin">
13
+ <number>2</number>
14
+ </property>
15
+ <property name="topMargin">
16
+ <number>1</number>
17
+ </property>
18
+ <property name="rightMargin">
19
+ <number>2</number>
20
+ </property>
21
+ <property name="bottomMargin">
22
+ <number>1</number>
23
+ </property>
24
+ <item>
25
+ <widget class="QGroupBox" name="groupBox">
26
+ <property name="title">
27
+ <string>IPG Fiber Laser</string>
28
+ </property>
29
+ <layout class="QHBoxLayout" name="innerLayout">
30
+ <property name="spacing">
31
+ <number>6</number>
32
+ </property>
33
+ <property name="leftMargin">
34
+ <number>6</number>
35
+ </property>
36
+ <property name="topMargin">
37
+ <number>4</number>
38
+ </property>
39
+ <property name="rightMargin">
40
+ <number>6</number>
41
+ </property>
42
+ <property name="bottomMargin">
43
+ <number>6</number>
44
+ </property>
45
+ <!-- Left column: status LEDs, control pairs -->
46
+ <item>
47
+ <layout class="QVBoxLayout" name="leftLayout">
48
+ <property name="spacing">
49
+ <number>4</number>
50
+ </property>
51
+ <!-- Status row: power supply, keyswitch, fault LEDs + power readout -->
52
+ <item>
53
+ <layout class="QHBoxLayout" name="statusLayout">
54
+ <property name="spacing">
55
+ <number>4</number>
56
+ </property>
57
+ <item>
58
+ <widget class="QGroupBox" name="supplyGroup">
59
+ <property name="title">
60
+ <string>Supply</string>
61
+ </property>
62
+ <property name="alignment">
63
+ <set>Qt::AlignCenter</set>
64
+ </property>
65
+ <property name="minimumSize">
66
+ <size>
67
+ <width>52</width>
68
+ <height>52</height>
69
+ </size>
70
+ </property>
71
+ <property name="maximumSize">
72
+ <size>
73
+ <width>64</width>
74
+ <height>64</height>
75
+ </size>
76
+ </property>
77
+ <layout class="QVBoxLayout" name="supplyLedLayout">
78
+ <property name="leftMargin">
79
+ <number>4</number>
80
+ </property>
81
+ <property name="topMargin">
82
+ <number>2</number>
83
+ </property>
84
+ <property name="rightMargin">
85
+ <number>4</number>
86
+ </property>
87
+ <property name="bottomMargin">
88
+ <number>4</number>
89
+ </property>
90
+ <item>
91
+ <widget class="QLedWidget" name="power_supply">
92
+ <property name="minimumSize">
93
+ <size>
94
+ <width>20</width>
95
+ <height>20</height>
96
+ </size>
97
+ </property>
98
+ <property name="maximumSize">
99
+ <size>
100
+ <width>32</width>
101
+ <height>32</height>
102
+ </size>
103
+ </property>
104
+ </widget>
105
+ </item>
106
+ </layout>
107
+ </widget>
108
+ </item>
109
+ <item>
110
+ <widget class="QGroupBox" name="keyGroup">
111
+ <property name="title">
112
+ <string>Key</string>
113
+ </property>
114
+ <property name="alignment">
115
+ <set>Qt::AlignCenter</set>
116
+ </property>
117
+ <property name="minimumSize">
118
+ <size>
119
+ <width>52</width>
120
+ <height>52</height>
121
+ </size>
122
+ </property>
123
+ <property name="maximumSize">
124
+ <size>
125
+ <width>64</width>
126
+ <height>64</height>
127
+ </size>
128
+ </property>
129
+ <layout class="QVBoxLayout" name="keyLedLayout">
130
+ <property name="leftMargin">
131
+ <number>4</number>
132
+ </property>
133
+ <property name="topMargin">
134
+ <number>2</number>
135
+ </property>
136
+ <property name="rightMargin">
137
+ <number>4</number>
138
+ </property>
139
+ <property name="bottomMargin">
140
+ <number>4</number>
141
+ </property>
142
+ <item>
143
+ <widget class="QLedWidget" name="keyswitch">
144
+ <property name="minimumSize">
145
+ <size>
146
+ <width>20</width>
147
+ <height>20</height>
148
+ </size>
149
+ </property>
150
+ <property name="maximumSize">
151
+ <size>
152
+ <width>32</width>
153
+ <height>32</height>
154
+ </size>
155
+ </property>
156
+ </widget>
157
+ </item>
158
+ </layout>
159
+ </widget>
160
+ </item>
161
+ <item>
162
+ <widget class="QGroupBox" name="faultGroup">
163
+ <property name="title">
164
+ <string>Fault</string>
165
+ </property>
166
+ <property name="alignment">
167
+ <set>Qt::AlignCenter</set>
168
+ </property>
169
+ <property name="minimumSize">
170
+ <size>
171
+ <width>52</width>
172
+ <height>52</height>
173
+ </size>
174
+ </property>
175
+ <property name="maximumSize">
176
+ <size>
177
+ <width>64</width>
178
+ <height>64</height>
179
+ </size>
180
+ </property>
181
+ <layout class="QVBoxLayout" name="faultLedLayout">
182
+ <property name="leftMargin">
183
+ <number>4</number>
184
+ </property>
185
+ <property name="topMargin">
186
+ <number>2</number>
187
+ </property>
188
+ <property name="rightMargin">
189
+ <number>4</number>
190
+ </property>
191
+ <property name="bottomMargin">
192
+ <number>4</number>
193
+ </property>
194
+ <item>
195
+ <widget class="QLedWidget" name="fault">
196
+ <property name="minimumSize">
197
+ <size>
198
+ <width>20</width>
199
+ <height>20</height>
200
+ </size>
201
+ </property>
202
+ <property name="maximumSize">
203
+ <size>
204
+ <width>32</width>
205
+ <height>32</height>
206
+ </size>
207
+ </property>
208
+ </widget>
209
+ </item>
210
+ </layout>
211
+ </widget>
212
+ </item>
213
+ <item>
214
+ <spacer name="statusSpacer">
215
+ <property name="orientation">
216
+ <enum>Qt::Horizontal</enum>
217
+ </property>
218
+ <property name="sizeHint" stdset="0">
219
+ <size>
220
+ <width>0</width>
221
+ <height>0</height>
222
+ </size>
223
+ </property>
224
+ </spacer>
225
+ </item>
226
+ <item>
227
+ <widget class="QGroupBox" name="powerGroup">
228
+ <property name="title">
229
+ <string>Power [W]</string>
230
+ </property>
231
+ <property name="alignment">
232
+ <set>Qt::AlignCenter</set>
233
+ </property>
234
+ <property name="minimumSize">
235
+ <size>
236
+ <width>80</width>
237
+ <height>52</height>
238
+ </size>
239
+ </property>
240
+ <property name="maximumSize">
241
+ <size>
242
+ <width>120</width>
243
+ <height>64</height>
244
+ </size>
245
+ </property>
246
+ <layout class="QVBoxLayout" name="powerSpinLayout">
247
+ <property name="leftMargin">
248
+ <number>4</number>
249
+ </property>
250
+ <property name="topMargin">
251
+ <number>2</number>
252
+ </property>
253
+ <property name="rightMargin">
254
+ <number>4</number>
255
+ </property>
256
+ <property name="bottomMargin">
257
+ <number>4</number>
258
+ </property>
259
+ <item>
260
+ <widget class="QDoubleSpinBox" name="power">
261
+ <property name="readOnly">
262
+ <bool>true</bool>
263
+ </property>
264
+ <property name="buttonSymbols">
265
+ <enum>QAbstractSpinBox::NoButtons</enum>
266
+ </property>
267
+ <property name="alignment">
268
+ <set>Qt::AlignCenter</set>
269
+ </property>
270
+ <property name="decimals">
271
+ <number>2</number>
272
+ </property>
273
+ <property name="maximum">
274
+ <double>9999.0</double>
275
+ </property>
276
+ </widget>
277
+ </item>
278
+ </layout>
279
+ </widget>
280
+ </item>
281
+ </layout>
282
+ </item>
283
+ <!-- Control row: aiming and emission LED + button pairs -->
284
+ <item>
285
+ <layout class="QHBoxLayout" name="controlLayout">
286
+ <property name="spacing">
287
+ <number>4</number>
288
+ </property>
289
+ <!-- Aiming: status LED + toggle button -->
290
+ <item>
291
+ <widget class="QLedWidget" name="aiming">
292
+ <property name="minimumSize">
293
+ <size>
294
+ <width>20</width>
295
+ <height>20</height>
296
+ </size>
297
+ </property>
298
+ <property name="maximumSize">
299
+ <size>
300
+ <width>24</width>
301
+ <height>24</height>
302
+ </size>
303
+ </property>
304
+ </widget>
305
+ </item>
306
+ <item>
307
+ <widget class="QPushButton" name="aiming_button">
308
+ <property name="text">
309
+ <string>Aiming</string>
310
+ </property>
311
+ <property name="minimumSize">
312
+ <size>
313
+ <width>60</width>
314
+ <height>0</height>
315
+ </size>
316
+ </property>
317
+ </widget>
318
+ </item>
319
+ <item>
320
+ <spacer name="aimEmitSpacer">
321
+ <property name="orientation">
322
+ <enum>Qt::Horizontal</enum>
323
+ </property>
324
+ <property name="sizeType">
325
+ <enum>QSizePolicy::Fixed</enum>
326
+ </property>
327
+ <property name="sizeHint" stdset="0">
328
+ <size>
329
+ <width>8</width>
330
+ <height>0</height>
331
+ </size>
332
+ </property>
333
+ </spacer>
334
+ </item>
335
+ <!-- Emission: status LED + toggle button -->
336
+ <item>
337
+ <widget class="QLedWidget" name="emission">
338
+ <property name="minimumSize">
339
+ <size>
340
+ <width>20</width>
341
+ <height>20</height>
342
+ </size>
343
+ </property>
344
+ <property name="maximumSize">
345
+ <size>
346
+ <width>24</width>
347
+ <height>24</height>
348
+ </size>
349
+ </property>
350
+ </widget>
351
+ </item>
352
+ <item>
353
+ <widget class="QPushButton" name="emission_button">
354
+ <property name="text">
355
+ <string>Emission</string>
356
+ </property>
357
+ <property name="minimumSize">
358
+ <size>
359
+ <width>60</width>
360
+ <height>0</height>
361
+ </size>
362
+ </property>
363
+ </widget>
364
+ </item>
365
+ <item>
366
+ <spacer name="controlSpacer">
367
+ <property name="orientation">
368
+ <enum>Qt::Horizontal</enum>
369
+ </property>
370
+ <property name="sizeHint" stdset="0">
371
+ <size>
372
+ <width>0</width>
373
+ <height>0</height>
374
+ </size>
375
+ </property>
376
+ </spacer>
377
+ </item>
378
+ </layout>
379
+ </item>
380
+ <!-- Vertical spacer to fill remaining height beside the rotary encoder -->
381
+ <item>
382
+ <spacer name="verticalSpacer">
383
+ <property name="orientation">
384
+ <enum>Qt::Vertical</enum>
385
+ </property>
386
+ <property name="sizeHint" stdset="0">
387
+ <size>
388
+ <width>0</width>
389
+ <height>0</height>
390
+ </size>
391
+ </property>
392
+ </spacer>
393
+ </item>
394
+ </layout>
395
+ </item>
396
+ <!-- Right column: rotary encoder spinbox for current setpoint -->
397
+ <item>
398
+ <widget class="QRotaryEncoderSpinBox" name="current">
399
+ <property name="maximumSize">
400
+ <size>
401
+ <width>120</width>
402
+ <height>16777215</height>
403
+ </size>
404
+ </property>
405
+ </widget>
406
+ </item>
407
+ </layout>
408
+ </widget>
409
+ </item>
410
+ </layout>
411
+ </widget>
412
+ <customwidgets>
413
+ <customwidget>
414
+ <class>QLedWidget</class>
415
+ <extends>QWidget</extends>
416
+ <header>QInstrument.widgets.QLedWidget</header>
417
+ </customwidget>
418
+ <customwidget>
419
+ <class>QRotaryEncoderSpinBox</class>
420
+ <extends>QWidget</extends>
421
+ <header>QInstrument.widgets.QRotaryEncoderSpinBox</header>
422
+ </customwidget>
423
+ </customwidgets>
424
+ <resources/>
425
+ <connections/>
426
+ </ui>
@@ -0,0 +1,6 @@
1
+ from QInstrument.lib.lazy import make_getattr
2
+
3
+ _lazy = {'QIPGLaser': 'instrument', 'QFakeIPGLaser': 'fake', 'QIPGLaserWidget': 'widget'}
4
+
5
+ __getattr__ = make_getattr(_lazy, __name__)
6
+ __all__ = list(_lazy)
@@ -73,5 +73,8 @@ class QFakeIPGLaser(QFakeInstrument, QIPGLaser):
73
73
  getter=lambda: self._store.get('temperature', 25.))
74
74
  self.identification = 'Fake IPG Fiber Laser'
75
75
 
76
+ def identify(self) -> bool:
77
+ return True
78
+
76
79
 
77
80
  __all__ = ['QFakeIPGLaser']