bec-widgets 0.94.0__py3-none-any.whl → 0.94.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 +12 -12
- PKG-INFO +1 -1
- bec_widgets/utils/bec_dispatcher.py +3 -3
- bec_widgets/widgets/figure/plots/image/image.py +6 -5
- {bec_widgets-0.94.0.dist-info → bec_widgets-0.94.2.dist-info}/METADATA +1 -1
- {bec_widgets-0.94.0.dist-info → bec_widgets-0.94.2.dist-info}/RECORD +11 -11
- pyproject.toml +1 -1
- tests/unit_tests/test_bec_dispatcher.py +2 -0
- {bec_widgets-0.94.0.dist-info → bec_widgets-0.94.2.dist-info}/WHEEL +0 -0
- {bec_widgets-0.94.0.dist-info → bec_widgets-0.94.2.dist-info}/entry_points.txt +0 -0
- {bec_widgets-0.94.0.dist-info → bec_widgets-0.94.2.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v0.94.2 (2024-08-13)
|
4
|
+
|
5
|
+
### Fix
|
6
|
+
|
7
|
+
* fix(image): image is single image mode do not raise popup error when connected twice with the same monitor ([`98b79aa`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/98b79aac7b47b73137f4d582f7f1d552b1d95366))
|
8
|
+
|
9
|
+
## v0.94.1 (2024-08-12)
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* fix: issue #292, wrong key was used to clean _slots internal dictionary ([`93d3977`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/93d397759c756397604ebff5e24f3a580be8620d))
|
14
|
+
|
3
15
|
## v0.94.0 (2024-08-08)
|
4
16
|
|
5
17
|
### Feature
|
@@ -135,15 +147,3 @@ This reverts commit fd6ae91993a23a7b8dbb2cf3c4b7c3eda6d2b0f6 ([`5aad401`](https:
|
|
135
147
|
* fix: reset ErrorPopup singleton between tests ([`5a9ccfd`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/5a9ccfd1f6d2aacd5d86c1a34f74163b272d1ae4))
|
136
148
|
|
137
149
|
* fix: metaclass + QObject segfaults PyQt(cpp bindings) ([`fc57b7a`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/fc57b7a1262031a2df9e6a99493db87e766b779a))
|
138
|
-
|
139
|
-
### Refactor
|
140
|
-
|
141
|
-
* refactor: renamed DeviceMonitor2DMessage ([`4be6fd6`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/4be6fd6b83ea1048f16310f7d2bbe777b13b245e))
|
142
|
-
|
143
|
-
* refactor: rename device_monitor to device_monitor_2d ([`714e1e1`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/714e1e139e0033d2725fefb636c419ca137a68c6))
|
144
|
-
|
145
|
-
## v0.92.0 (2024-07-24)
|
146
|
-
|
147
|
-
### Fix
|
148
|
-
|
149
|
-
* fix(dock): custom label can be created closable ([`4457ef2`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/4457ef2147e21b856c9dcaf63c81ba98002dcaf1))
|
PKG-INFO
CHANGED
@@ -162,9 +162,9 @@ class BECDispatcher:
|
|
162
162
|
return
|
163
163
|
self.client.connector.unregister(topics, cb=connected_slot)
|
164
164
|
topics_str, _ = self.client.connector._convert_endpointinfo(topics)
|
165
|
-
self._slots[
|
166
|
-
if not self._slots[
|
167
|
-
del self._slots[
|
165
|
+
self._slots[connected_slot].difference_update(set(topics_str))
|
166
|
+
if not self._slots[connected_slot]:
|
167
|
+
del self._slots[connected_slot]
|
168
168
|
|
169
169
|
def disconnect_topics(self, topics: Union[str, list]):
|
170
170
|
self.client.connector.unregister(topics)
|
@@ -251,9 +251,10 @@ class BECImageShow(BECPlotBase):
|
|
251
251
|
|
252
252
|
image_exits = self._check_image_id(monitor, self._images)
|
253
253
|
if image_exits:
|
254
|
-
raise ValueError(
|
255
|
-
|
256
|
-
)
|
254
|
+
# raise ValueError(
|
255
|
+
# f"Monitor with ID '{monitor}' already exists in widget '{self.gui_id}'."
|
256
|
+
# )
|
257
|
+
return
|
257
258
|
|
258
259
|
# monitor = self.entry_validator.validate_monitor(monitor)
|
259
260
|
|
@@ -577,10 +578,10 @@ class BECImageShow(BECPlotBase):
|
|
577
578
|
self, source: str, name: str, config: ImageItemConfig, data=None
|
578
579
|
) -> BECImageItem: # TODO fix types
|
579
580
|
config.parent_id = self.gui_id
|
580
|
-
image = BECImageItem(config=config, parent_image=self)
|
581
|
-
self.plot_item.addItem(image)
|
582
581
|
if self.single_image is True and len(self.images) > 0:
|
583
582
|
self.remove_image(0)
|
583
|
+
image = BECImageItem(config=config, parent_image=self)
|
584
|
+
self.plot_item.addItem(image)
|
584
585
|
self._images[source][name] = image
|
585
586
|
if source == "device_monitor_2d":
|
586
587
|
self._connect_device_monitor_2d(config.monitor)
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=BtKhZI3dhK09En1BfpglYi-ZJwG6ZdC-iJr7kXFVfCg,8346
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=AIRugJUd4Xfa1kLlZjS-fusom9MqeLaedm5gvCf5Mrg,6460
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=YQCZe2dGXb5ldFsUtd4xjktxqbR5iMSctbZp1j4M1F0,1307
|
8
8
|
README.md,sha256=Od69x-RS85Hph0-WwWACwal4yUd67XkEn4APEfHhHFw,2649
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=SNoDaQvOhh_FOEYgsPR_cnJIO-yWIilEjcZYEy4ksSE,2356
|
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
|
@@ -109,7 +109,7 @@ bec_widgets/qt_utils/toolbar.py,sha256=89WddOXPePby2CICUumdN_K_3DBgZPCR8HWUJAwrh
|
|
109
109
|
bec_widgets/utils/__init__.py,sha256=1930ji1Jj6dVuY81Wd2kYBhHYNV-2R0bN_L4o9zBj1U,533
|
110
110
|
bec_widgets/utils/bec_connector.py,sha256=SivHKXVyNVqeu3kCXYEPpbleTVw8g1cW0FKq1QrQgco,9987
|
111
111
|
bec_widgets/utils/bec_designer.py,sha256=ak3G8FdojUPjVBBwdPXw7tN5P2Uxr-SSoQt394jXeAA,4308
|
112
|
-
bec_widgets/utils/bec_dispatcher.py,sha256=
|
112
|
+
bec_widgets/utils/bec_dispatcher.py,sha256=l2NRuiHGA-tr3gwJXSk7h5ZBKDuDqP8gmJKHJFc_n9I,6225
|
113
113
|
bec_widgets/utils/bec_table.py,sha256=nA2b8ukSeUfquFMAxGrUVOqdrzMoDYD6O_4EYbOG2zk,717
|
114
114
|
bec_widgets/utils/bec_widget.py,sha256=Bo2v1aP7rgSAQajW8GBJbI3iovTn_hGCsmeFMo7bT10,707
|
115
115
|
bec_widgets/utils/colors.py,sha256=hNIi99EpMv3t3hTJIL2jBe5nzh5f2fuCyEKXEPWSQSc,10501
|
@@ -176,7 +176,7 @@ bec_widgets/widgets/figure/plots/axis_settings.py,sha256=QxRpQwgfBr1H0HTjfOpiXi_
|
|
176
176
|
bec_widgets/widgets/figure/plots/axis_settings.ui,sha256=a2qIuK9lyi9HCyrSvPr6wxzmm1FymaWcpmyOhMIiFt8,11013
|
177
177
|
bec_widgets/widgets/figure/plots/plot_base.py,sha256=TG9FZZJi9ixTeZ1yDOO4sl7fJ524wxbNcr-2_Qd2mcQ,11154
|
178
178
|
bec_widgets/widgets/figure/plots/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
179
|
-
bec_widgets/widgets/figure/plots/image/image.py,sha256=
|
179
|
+
bec_widgets/widgets/figure/plots/image/image.py,sha256=y2MqgJv6Njv-huDN_exn0Fq1rAh5vs_assKCKHgQH6I,24941
|
180
180
|
bec_widgets/widgets/figure/plots/image/image_item.py,sha256=RljjbkqJEr2cKDlqj1j5GQ1h89jpqOV-OpFz1TbED8I,10937
|
181
181
|
bec_widgets/widgets/figure/plots/image/image_processor.py,sha256=GeTtWjbldy6VejMwPGQgM-o3d6bmLglCjdoktu19xfA,5262
|
182
182
|
bec_widgets/widgets/figure/plots/motor_map/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -333,7 +333,7 @@ tests/unit_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
333
333
|
tests/unit_tests/client_mocks.py,sha256=4pS4KvvFGY9hjphds9i-GoIjVWVkax4XpDnVp6Mctfw,5275
|
334
334
|
tests/unit_tests/conftest.py,sha256=EE5RX_xR50ELJPgT2kny9rM1NCmCRO22sd_L9fvVSEk,1917
|
335
335
|
tests/unit_tests/test_bec_connector.py,sha256=5uqBfjgMeOlGvqJlFbytxEpZ1El7_Y2q8fZHh4GvtD8,2478
|
336
|
-
tests/unit_tests/test_bec_dispatcher.py,sha256=
|
336
|
+
tests/unit_tests/test_bec_dispatcher.py,sha256=uHKMDc2112Q7XY5GkaeV_uGzsjHCoOa7u-MpR-Y-sJA,4078
|
337
337
|
tests/unit_tests/test_bec_dock.py,sha256=iZcyF6tjNHstFx0rtbI8zhvFvgQiOpb_CuOF-L6Dipc,5610
|
338
338
|
tests/unit_tests/test_bec_figure.py,sha256=oTlwHgDSrE4QRN3i9ZRM3QT2Xt8jfOyUTNxIZqZ4WKQ,9780
|
339
339
|
tests/unit_tests/test_bec_image.py,sha256=Bc9eaLDk_9MfVFC6BZ-dymf-bQZg_CHL810nssXsj_k,2814
|
@@ -376,8 +376,8 @@ tests/unit_tests/test_configs/config_device_no_entry.yaml,sha256=hdvue9KLc_kfNzG
|
|
376
376
|
tests/unit_tests/test_configs/config_scan.yaml,sha256=vo484BbWOjA_e-h6bTjSV9k7QaQHrlAvx-z8wtY-P4E,1915
|
377
377
|
tests/unit_tests/test_msgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
378
378
|
tests/unit_tests/test_msgs/available_scans_message.py,sha256=m_z97hIrjHXXMa2Ex-UvsPmTxOYXfjxyJaGkIY6StTY,46532
|
379
|
-
bec_widgets-0.94.
|
380
|
-
bec_widgets-0.94.
|
381
|
-
bec_widgets-0.94.
|
382
|
-
bec_widgets-0.94.
|
383
|
-
bec_widgets-0.94.
|
379
|
+
bec_widgets-0.94.2.dist-info/METADATA,sha256=YQCZe2dGXb5ldFsUtd4xjktxqbR5iMSctbZp1j4M1F0,1307
|
380
|
+
bec_widgets-0.94.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
381
|
+
bec_widgets-0.94.2.dist-info/entry_points.txt,sha256=3otEkCdDB9LZJuBLzG4pFLK5Di0CVybN_12IsZrQ-58,166
|
382
|
+
bec_widgets-0.94.2.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
383
|
+
bec_widgets-0.94.2.dist-info/RECORD,,
|
pyproject.toml
CHANGED
@@ -92,7 +92,9 @@ def test_dispatcher_2_cb_same_topic(bec_dispatcher_w_connector, qtbot, send_msg_
|
|
92
92
|
bec_dispatcher.connect_slot(cb1, "topic1")
|
93
93
|
bec_dispatcher.connect_slot(cb2, "topic1")
|
94
94
|
assert len(bec_dispatcher.client.connector._topics_cb) == 1
|
95
|
+
assert len(bec_dispatcher._slots) == 2
|
95
96
|
bec_dispatcher.disconnect_slot(cb1, "topic1")
|
97
|
+
assert len(bec_dispatcher._slots) == 1
|
96
98
|
|
97
99
|
send_msg_event.set()
|
98
100
|
qtbot.wait(10)
|
File without changes
|
File without changes
|
File without changes
|