bec-widgets 1.0.1__py3-none-any.whl → 1.0.2__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,6 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v1.0.2 (2024-10-22)
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix(scan_control): scan args signal fixed to emit list instead of hardcoded structure ([`4f5448c`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/4f5448cf51a204e077af162c7f0aed1f1a60e57a))
9
+
10
+
4
11
  ## v1.0.1 (2024-10-22)
5
12
 
6
13
  ### Bug Fixes
@@ -160,10 +167,6 @@ is emitted multiple times. ([`f084e25`](https://gitlab.psi.ch/bec/bec_widgets/-/
160
167
 
161
168
  * refactor: allow hiding of arg/kwarg boxes ([`efe90eb`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/efe90eb163e2123a5b4d0bb59f66025a569336ad))
162
169
 
163
- * refactor: add proxy to waveform to limit the dap_request frequency ([`5c74037`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/5c740371d86d9b1b341bc3c4d8bdf62027aa089b))
164
-
165
- * refactor: update dap_model also if x and y axis are selected ([`28ee385`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/28ee3856be2c47a63182b16454ece37a0ec04811))
166
-
167
170
  ### Testing
168
171
 
169
172
  * test: add tests for scan_status_callback ([`dc0c825`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/dc0c825fd594c093a24543ff803d6c6564010e92))
PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 1.0.1
3
+ Version: 1.0.2
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
@@ -215,42 +215,18 @@
215
215
  <layout class="QVBoxLayout" name="verticalLayout_3">
216
216
  <item>
217
217
  <widget class="ScanControl" name="scan_control">
218
- <property name="sizePolicy">
219
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
220
- <horstretch>1</horstretch>
221
- <verstretch>0</verstretch>
222
- </sizepolicy>
223
- </property>
224
- <property name="minimumSize">
225
- <size>
226
- <width>0</width>
227
- <height>0</height>
228
- </size>
229
- </property>
230
218
  <property name="current_scan" stdset="0">
231
219
  <string>line_scan</string>
232
220
  </property>
233
221
  <property name="hide_arg_box" stdset="0">
234
222
  <bool>false</bool>
235
223
  </property>
236
- <property name="hide_kwarg_boxes" stdset="0">
237
- <bool>false</bool>
238
- </property>
239
- <property name="hide_scan_control_buttons" stdset="0">
240
- <bool>false</bool>
241
- </property>
242
224
  <property name="hide_scan_selection_combobox" stdset="0">
243
225
  <bool>true</bool>
244
226
  </property>
245
227
  <property name="hide_add_remove_buttons" stdset="0">
246
228
  <bool>true</bool>
247
229
  </property>
248
- <property name="hide_args_group" stdset="0">
249
- <bool>false</bool>
250
- </property>
251
- <property name="hide_kwargs_group" stdset="0">
252
- <bool>false</bool>
253
- </property>
254
230
  </widget>
255
231
  </item>
256
232
  <item>
@@ -440,54 +416,54 @@
440
416
  </widget>
441
417
  <customwidgets>
442
418
  <customwidget>
443
- <class>ToggleSwitch</class>
419
+ <class>DapComboBox</class>
444
420
  <extends>QWidget</extends>
445
- <header>toggle_switch</header>
421
+ <header>dap_combo_box</header>
446
422
  </customwidget>
447
423
  <customwidget>
448
- <class>BECWaveformWidget</class>
424
+ <class>StopButton</class>
449
425
  <extends>QWidget</extends>
450
- <header>bec_waveform_widget</header>
426
+ <header>stop_button</header>
451
427
  </customwidget>
452
428
  <customwidget>
453
- <class>BECStatusBox</class>
429
+ <class>WebsiteWidget</class>
454
430
  <extends>QWidget</extends>
455
- <header>bec_status_box</header>
431
+ <header>website_widget</header>
456
432
  </customwidget>
457
433
  <customwidget>
458
- <class>WebsiteWidget</class>
434
+ <class>BECQueue</class>
459
435
  <extends>QWidget</extends>
460
- <header>website_widget</header>
436
+ <header>bec_queue</header>
461
437
  </customwidget>
462
438
  <customwidget>
463
- <class>StopButton</class>
439
+ <class>ScanControl</class>
464
440
  <extends>QWidget</extends>
465
- <header>stop_button</header>
441
+ <header>scan_control</header>
466
442
  </customwidget>
467
443
  <customwidget>
468
- <class>LMFitDialog</class>
444
+ <class>ToggleSwitch</class>
469
445
  <extends>QWidget</extends>
470
- <header>lm_fit_dialog</header>
446
+ <header>toggle_switch</header>
471
447
  </customwidget>
472
448
  <customwidget>
473
- <class>PositionerGroup</class>
449
+ <class>BECProgressBar</class>
474
450
  <extends>QWidget</extends>
475
- <header>positioner_group</header>
451
+ <header>bec_progress_bar</header>
476
452
  </customwidget>
477
453
  <customwidget>
478
- <class>ScanControl</class>
454
+ <class>DarkModeButton</class>
479
455
  <extends>QWidget</extends>
480
- <header>scan_control</header>
456
+ <header>dark_mode_button</header>
481
457
  </customwidget>
482
458
  <customwidget>
483
- <class>BECQueue</class>
459
+ <class>PositionerGroup</class>
484
460
  <extends>QWidget</extends>
485
- <header>bec_queue</header>
461
+ <header>positioner_group</header>
486
462
  </customwidget>
487
463
  <customwidget>
488
- <class>BECProgressBar</class>
464
+ <class>BECWaveformWidget</class>
489
465
  <extends>QWidget</extends>
490
- <header>bec_progress_bar</header>
466
+ <header>bec_waveform_widget</header>
491
467
  </customwidget>
492
468
  <customwidget>
493
469
  <class>DeviceComboBox</class>
@@ -495,14 +471,14 @@
495
471
  <header>device_combobox</header>
496
472
  </customwidget>
497
473
  <customwidget>
498
- <class>DarkModeButton</class>
474
+ <class>LMFitDialog</class>
499
475
  <extends>QWidget</extends>
500
- <header>dark_mode_button</header>
476
+ <header>lm_fit_dialog</header>
501
477
  </customwidget>
502
478
  <customwidget>
503
- <class>DapComboBox</class>
479
+ <class>BECStatusBox</class>
504
480
  <extends>QWidget</extends>
505
- <header>dap_combo_box</header>
481
+ <header>bec_status_box</header>
506
482
  </customwidget>
507
483
  </customwidgets>
508
484
  <resources/>
@@ -514,12 +490,12 @@
514
490
  <slot>toogle_roi_select(bool)</slot>
515
491
  <hints>
516
492
  <hint type="sourcelabel">
517
- <x>529</x>
518
- <y>728</y>
493
+ <x>1042</x>
494
+ <y>212</y>
519
495
  </hint>
520
496
  <hint type="destinationlabel">
521
- <x>1099</x>
522
- <y>96</y>
497
+ <x>1416</x>
498
+ <y>322</y>
523
499
  </hint>
524
500
  </hints>
525
501
  </connection>
@@ -546,12 +522,12 @@
546
522
  <slot>plot(QString)</slot>
547
523
  <hints>
548
524
  <hint type="sourcelabel">
549
- <x>297</x>
550
- <y>170</y>
525
+ <x>577</x>
526
+ <y>215</y>
551
527
  </hint>
552
528
  <hint type="destinationlabel">
553
- <x>1099</x>
554
- <y>201</y>
529
+ <x>1416</x>
530
+ <y>427</y>
555
531
  </hint>
556
532
  </hints>
557
533
  </connection>
@@ -562,12 +538,12 @@
562
538
  <slot>select_y_axis(QString)</slot>
563
539
  <hints>
564
540
  <hint type="sourcelabel">
565
- <x>297</x>
566
- <y>170</y>
541
+ <x>577</x>
542
+ <y>215</y>
567
543
  </hint>
568
544
  <hint type="destinationlabel">
569
- <x>467</x>
570
- <y>170</y>
545
+ <x>909</x>
546
+ <y>215</y>
571
547
  </hint>
572
548
  </hints>
573
549
  </connection>
@@ -578,60 +554,60 @@
578
554
  <slot>add_dap(QString,QString,QString)</slot>
579
555
  <hints>
580
556
  <hint type="sourcelabel">
581
- <x>467</x>
582
- <y>170</y>
557
+ <x>909</x>
558
+ <y>215</y>
583
559
  </hint>
584
560
  <hint type="destinationlabel">
585
- <x>1099</x>
586
- <y>221</y>
561
+ <x>1416</x>
562
+ <y>447</y>
587
563
  </hint>
588
564
  </hints>
589
565
  </connection>
590
566
  <connection>
591
567
  <sender>scan_control</sender>
592
- <signal>scan_axis(QString,double,double)</signal>
593
- <receiver>bec_waveform_widget</receiver>
594
- <slot>set_x(QString)</slot>
568
+ <signal>device_selected(QString)</signal>
569
+ <receiver>positioner_group</receiver>
570
+ <slot>set_positioners(QString)</slot>
595
571
  <hints>
596
572
  <hint type="sourcelabel">
597
- <x>244</x>
598
- <y>348</y>
573
+ <x>230</x>
574
+ <y>306</y>
599
575
  </hint>
600
576
  <hint type="destinationlabel">
601
- <x>1140</x>
602
- <y>491</y>
577
+ <x>187</x>
578
+ <y>926</y>
603
579
  </hint>
604
580
  </hints>
605
581
  </connection>
606
582
  <connection>
607
583
  <sender>scan_control</sender>
608
- <signal>scan_axis(QString,double,double)</signal>
609
- <receiver>dap_combo_box</receiver>
610
- <slot>select_x_axis(QString)</slot>
584
+ <signal>device_selected(QString)</signal>
585
+ <receiver>bec_waveform_widget</receiver>
586
+ <slot>set_x(QString)</slot>
611
587
  <hints>
612
588
  <hint type="sourcelabel">
613
- <x>244</x>
614
- <y>322</y>
589
+ <x>187</x>
590
+ <y>356</y>
615
591
  </hint>
616
592
  <hint type="destinationlabel">
617
- <x>909</x>
618
- <y>189</y>
593
+ <x>972</x>
594
+ <y>509</y>
619
595
  </hint>
620
596
  </hints>
621
597
  </connection>
622
598
  <connection>
623
599
  <sender>scan_control</sender>
624
600
  <signal>device_selected(QString)</signal>
625
- <receiver>positioner_group</receiver>
626
- <slot>set_positioners(QString)</slot>
601
+ <receiver>dap_combo_box</receiver>
602
+ <slot>select_x_axis(QString)</slot>
627
603
  <hints>
628
604
  <hint type="sourcelabel">
629
- <x>227</x>
630
- <y>337</y>
605
+ <x>187</x>
606
+ <y>356</y>
631
607
  </hint>
632
608
  <hint type="destinationlabel">
633
- <x>227</x>
634
- <y>676</y>
609
+ <x>794</x>
610
+ <y>202</y>
635
611
  </hint>
636
612
  </hints>
637
613
  </connection>
@@ -45,7 +45,7 @@ class ScanControl(BECWidget, QWidget):
45
45
  scan_started = Signal()
46
46
  scan_selected = Signal(str)
47
47
  device_selected = Signal(str)
48
- scan_axis = Signal(str, float, float)
48
+ scan_args = Signal(list)
49
49
 
50
50
  def __init__(
51
51
  self,
@@ -457,8 +457,7 @@ class ScanControl(BECWidget, QWidget):
457
457
  def run_scan(self):
458
458
  """Starts the selected scan with the given parameters."""
459
459
  args, kwargs = self.get_scan_parameters()
460
- for device, start, stop in zip(*[iter(args)] * 3):
461
- self.scan_axis.emit(device.name, start, stop)
460
+ self.scan_args.emit(args)
462
461
  scan_function = getattr(self.scans, self.comboBox_scan_selection.currentText())
463
462
  if callable(scan_function):
464
463
  self.scan_started.emit()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bec_widgets
3
- Version: 1.0.1
3
+ Version: 1.0.2
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=Dc1iDjsc72UxdUtihx4uSZU0lrTQeR8hZwGx1MQBfKE,8432
3
3
  .pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
4
4
  .readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
5
- CHANGELOG.md,sha256=GX7PuoUYFPE97vwwYtKRXNT28wKXobKHMinD7WHePo8,7769
5
+ CHANGELOG.md,sha256=gR0rKv9sDzbyZmcKeia0hD0j-q5IhVIu1wiNnxkk31Y,7661
6
6
  LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
7
- PKG-INFO,sha256=O66ysa8oQnHNARW2zVR1Xd5ymeIXvNaEKTmmGIZszqY,1332
7
+ PKG-INFO,sha256=p-VMgcNWFa8Y1lezGTRVavHZZe2NV5pgRiFa6OiSht0,1332
8
8
  README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
9
- pyproject.toml,sha256=iGLNgHHnESjB03TIzIKmeFHNtQCwdXr2dxS6t9scdQk,2592
9
+ pyproject.toml,sha256=wDRwKFKfAkDAFwWoWqKVKLA22AcThgEmmS4cnkzPU50,2592
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
@@ -18,7 +18,7 @@ bec_widgets/applications/bec_app.py,sha256=PptBknsnhWm5GSE-xBps4EAYP3f9i-q9YmUMR
18
18
  bec_widgets/applications/alignment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  bec_widgets/applications/alignment/alignment_1d/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  bec_widgets/applications/alignment/alignment_1d/alignment_1d.py,sha256=kGF0grwYDWGwNRhWiI3OUj7wUmMd6PhFOR9Drb0339I,8093
21
- bec_widgets/applications/alignment/alignment_1d/alignment_1d.ui,sha256=af3-CytU4h3TAaOvgzq6OHJ60DZSiGVeci7tzNX2fto,18927
21
+ bec_widgets/applications/alignment/alignment_1d/alignment_1d.ui,sha256=NSBuD5rZuITpsxOPr30fLFjxd_p1oVwT5L4hqEHN3KQ,18012
22
22
  bec_widgets/assets/app_icons/BEC-General-App.png,sha256=hc2ktly53DZAbl_rE3cb-vdRa5gtdCmBEjfwm2y5P4g,447581
23
23
  bec_widgets/assets/app_icons/alignment_1d.png,sha256=5VouaWieb4lVv3wUBNHaO5ovUW2Fk25aTKYQzOWy0mg,2071069
24
24
  bec_widgets/assets/app_icons/bec_widgets_icon.png,sha256=K8dgGwIjalDh9PRHUsSQBqgdX7a00nM3igZdc20pkYM,1747017
@@ -225,7 +225,7 @@ bec_widgets/widgets/ring_progress_bar/ring_progress_bar.pyproject,sha256=ZNYDnKD
225
225
  bec_widgets/widgets/ring_progress_bar/ring_progress_bar_plugin.py,sha256=-rw9ZSThgAH0Ubbr3X-L5x-ZqMXUGnauyFb4OmfUvD4,1394
226
226
  bec_widgets/widgets/scan_control/__init__.py,sha256=IOfHl15vxb_uC6KN62-PeUzbBha_vQyqkkXbJ2HU674,38
227
227
  bec_widgets/widgets/scan_control/register_scan_control.py,sha256=xUX2yR0-MaIMg9_y9qe50yDDphzsh2x1b5PMrF90yPM,475
228
- bec_widgets/widgets/scan_control/scan_control.py,sha256=k1nypTt4cRo4zHI4Oii-P3-YBoUAEDUhQT-kbl9djyk,18126
228
+ bec_widgets/widgets/scan_control/scan_control.py,sha256=GcdPR2ZeDLEId5JJlorAVM__QncJC3wFv96EaGPzmsM,18030
229
229
  bec_widgets/widgets/scan_control/scan_control.pyproject,sha256=eTgVDFKToIH8_BbJjM2RvbOLr7HnYoidX0SAHx640DM,30
230
230
  bec_widgets/widgets/scan_control/scan_control_plugin.py,sha256=7GaqmaRgbwIPjVoXcyKVDl8UpfqC2weViup-YFfzUsM,1270
231
231
  bec_widgets/widgets/scan_control/scan_group_box.py,sha256=-d3V-sU-S-IHFymY-c-4BesUZNsG3Hq1exXvVGspXy4,12713
@@ -270,8 +270,8 @@ bec_widgets/widgets/website/register_website_widget.py,sha256=LIQJpV9uqcBiPR9cEA
270
270
  bec_widgets/widgets/website/website.py,sha256=42pncCc_zI2eqeMArIurVmPUukRo5bTxa2h1Skah-io,3012
271
271
  bec_widgets/widgets/website/website_widget.pyproject,sha256=scOiV3cV1_BjbzpPzy2N8rIJL5P2qIZz8ObTJ-Uvdtg,25
272
272
  bec_widgets/widgets/website/website_widget_plugin.py,sha256=pz38_C2cZ0yvPPS02wdIPcmhFo_yiwUhflsASocAPQQ,1341
273
- bec_widgets-1.0.1.dist-info/METADATA,sha256=O66ysa8oQnHNARW2zVR1Xd5ymeIXvNaEKTmmGIZszqY,1332
274
- bec_widgets-1.0.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
275
- bec_widgets-1.0.1.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
276
- bec_widgets-1.0.1.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
277
- bec_widgets-1.0.1.dist-info/RECORD,,
273
+ bec_widgets-1.0.2.dist-info/METADATA,sha256=p-VMgcNWFa8Y1lezGTRVavHZZe2NV5pgRiFa6OiSht0,1332
274
+ bec_widgets-1.0.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
275
+ bec_widgets-1.0.2.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
276
+ bec_widgets-1.0.2.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
277
+ bec_widgets-1.0.2.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 = "1.0.1"
7
+ version = "1.0.2"
8
8
  description = "BEC Widgets"
9
9
  requires-python = ">=3.10"
10
10
  classifiers = [