bec-widgets 2.10.3__py3-none-any.whl → 2.11.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 +51 -0
- PKG-INFO +1 -1
- bec_widgets/cli/client.py +5 -5
- bec_widgets/widgets/plots/image/image.py +128 -856
- bec_widgets/widgets/plots/image/image_base.py +1062 -0
- bec_widgets/widgets/plots/image/image_item.py +7 -6
- {bec_widgets-2.10.3.dist-info → bec_widgets-2.11.0.dist-info}/METADATA +1 -1
- {bec_widgets-2.10.3.dist-info → bec_widgets-2.11.0.dist-info}/RECORD +12 -11
- pyproject.toml +1 -1
- {bec_widgets-2.10.3.dist-info → bec_widgets-2.11.0.dist-info}/WHEEL +0 -0
- {bec_widgets-2.10.3.dist-info → bec_widgets-2.11.0.dist-info}/entry_points.txt +0 -0
- {bec_widgets-2.10.3.dist-info → bec_widgets-2.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -21,9 +21,6 @@ logger = bec_logger.logger
|
|
21
21
|
# noinspection PyDataclass
|
22
22
|
class ImageItemConfig(ConnectionConfig): # TODO review config
|
23
23
|
parent_id: str | None = Field(None, description="The parent plot of the image.")
|
24
|
-
monitor: str | None = Field(None, description="The name of the monitor.")
|
25
|
-
monitor_type: Literal["1d", "2d", "auto"] = Field("auto", description="The type of monitor.")
|
26
|
-
source: str | None = Field(None, description="The source of the curve.")
|
27
24
|
color_map: str | None = Field("plasma", description="The color map of the image.")
|
28
25
|
downsample: bool | None = Field(True, description="Whether to downsample the image.")
|
29
26
|
opacity: float | None = Field(1.0, description="The opacity of the image.")
|
@@ -43,6 +40,7 @@ class ImageItemConfig(ConnectionConfig): # TODO review config
|
|
43
40
|
|
44
41
|
|
45
42
|
class ImageItem(BECConnector, pg.ImageItem):
|
43
|
+
|
46
44
|
RPC = True
|
47
45
|
USER_ACCESS = [
|
48
46
|
"color_map",
|
@@ -69,12 +67,13 @@ class ImageItem(BECConnector, pg.ImageItem):
|
|
69
67
|
]
|
70
68
|
|
71
69
|
vRangeChangedManually = Signal(tuple)
|
70
|
+
removed = Signal(str)
|
72
71
|
|
73
72
|
def __init__(
|
74
73
|
self,
|
75
74
|
config: Optional[ImageItemConfig] = None,
|
76
75
|
gui_id: Optional[str] = None,
|
77
|
-
parent_image=None,
|
76
|
+
parent_image=None, # FIXME: rename to parent
|
78
77
|
**kwargs,
|
79
78
|
):
|
80
79
|
if config is None:
|
@@ -274,6 +273,8 @@ class ImageItem(BECConnector, pg.ImageItem):
|
|
274
273
|
self.buffer = []
|
275
274
|
self.max_len = 0
|
276
275
|
|
277
|
-
def remove(self):
|
278
|
-
self.parent().disconnect_monitor(self.config.monitor)
|
276
|
+
def remove(self, emit: bool = True):
|
279
277
|
self.clear()
|
278
|
+
super().remove()
|
279
|
+
if emit:
|
280
|
+
self.removed.emit(self.objectName())
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=1nMYldzVk0tFkBWYTcUjumOrdSADASheWOAc0kOFDYs,9509
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=ivqg3HTaOxNbEW3bzWh9MXAkrekuGoNdj0Mj3SdRYuw,639
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=nMdkbMCLvFqpYBBfyE7DHVqGszb8k01Cl5ELsh6Ukqs,295419
|
6
6
|
LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=BLw4A-_2phKs1Sa32uDn23NpiApz4ROI9pA9vfDP3g8,1254
|
8
8
|
README.md,sha256=oY5Jc1uXehRASuwUJ0umin2vfkFh7tHF-LLruHTaQx0,3560
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=Kc5bWYH7_evTktTTuuX7SoYWWTwld_osxee161dbqnM,2835
|
10
10
|
.git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
|
11
11
|
.github/pull_request_template.md,sha256=F_cJXzooWMFgMGtLK-7KeGcQt0B4AYFse5oN0zQ9p6g,801
|
12
12
|
.github/ISSUE_TEMPLATE/bug_report.yml,sha256=WdRnt7HGxvsIBLzhkaOWNfg8IJQYa_oV9_F08Ym6znQ,1081
|
@@ -35,7 +35,7 @@ bec_widgets/assets/app_icons/bec_widgets_icon.png,sha256=K8dgGwIjalDh9PRHUsSQBqg
|
|
35
35
|
bec_widgets/assets/app_icons/ui_loader_tile.png,sha256=qSK3XHqvnAVGV9Q0ulORcGFbXJ9LDq2uz8l9uTtMsNk,1812476
|
36
36
|
bec_widgets/assets/app_icons/widget_launch_tile.png,sha256=bWsICHFfSe9-ESUj3AwlE95dDOea-f6M-s9fBapsxB4,2252911
|
37
37
|
bec_widgets/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
|
-
bec_widgets/cli/client.py,sha256=
|
38
|
+
bec_widgets/cli/client.py,sha256=YcHF_WYmCy4DcgLhYsjVuzESxvjOlG5Ip6E3v2GmBCk,97938
|
39
39
|
bec_widgets/cli/client_utils.py,sha256=F2hyt--jL53bN8NoWifNUMqwwx5FbpS6I1apERdTRzM,18114
|
40
40
|
bec_widgets/cli/generate_cli.py,sha256=K_wMxo2XBUn92SnY3dSrlyUn8ax6Y20QBGCuP284DsQ,10986
|
41
41
|
bec_widgets/cli/server.py,sha256=h7QyBOOGjyrP_fxJIIOSEMc4E06cLG0JyaofjNV6oCA,5671
|
@@ -254,9 +254,10 @@ bec_widgets/widgets/games/register_minesweeper.py,sha256=8fgMBD3yB-5_eGqhG_qxpj3
|
|
254
254
|
bec_widgets/widgets/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
255
255
|
bec_widgets/widgets/plots/plot_base.py,sha256=GETUsx51BE_Tuop8bC-KiFVrkR82TJ5S0cr7siouSWM,35848
|
256
256
|
bec_widgets/widgets/plots/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
257
|
-
bec_widgets/widgets/plots/image/image.py,sha256=
|
257
|
+
bec_widgets/widgets/plots/image/image.py,sha256=8s9DShQVAz458aPKfJTCWEmg8HoagCX3MkjFJZXSmek,17278
|
258
258
|
bec_widgets/widgets/plots/image/image.pyproject,sha256=_sRCIu4MNgToaB4D7tUMWq3xKX6T2VoRS3UzGNIseHQ,23
|
259
|
-
bec_widgets/widgets/plots/image/
|
259
|
+
bec_widgets/widgets/plots/image/image_base.py,sha256=_c4rYRX2AwGyy0WWUhaAJl3gNfXSq1ts99MG8rsa-6w,36104
|
260
|
+
bec_widgets/widgets/plots/image/image_item.py,sha256=rkL1o35Pgs1zhvv2wpSG1gt_bjP5kO4Z1oy6d2q-Yls,8577
|
260
261
|
bec_widgets/widgets/plots/image/image_plugin.py,sha256=R0Hzh2GgYlfZLPZwOMgqLKKIA5DxEnTcSrbI7zTe-tI,1204
|
261
262
|
bec_widgets/widgets/plots/image/image_processor.py,sha256=0qsQIyB__xxBwNIoXhFbB0wSiB8n7n_oX4cvfFsUzOs,4304
|
262
263
|
bec_widgets/widgets/plots/image/image_roi_plot.py,sha256=5CWy_eC-GS2ZLJTj2ItrVCoKhPN2g3fx6L4ktf5yVFQ,1191
|
@@ -403,8 +404,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=O
|
|
403
404
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
|
404
405
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
|
405
406
|
bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
|
406
|
-
bec_widgets-2.
|
407
|
-
bec_widgets-2.
|
408
|
-
bec_widgets-2.
|
409
|
-
bec_widgets-2.
|
410
|
-
bec_widgets-2.
|
407
|
+
bec_widgets-2.11.0.dist-info/METADATA,sha256=BLw4A-_2phKs1Sa32uDn23NpiApz4ROI9pA9vfDP3g8,1254
|
408
|
+
bec_widgets-2.11.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
409
|
+
bec_widgets-2.11.0.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
|
410
|
+
bec_widgets-2.11.0.dist-info/licenses/LICENSE,sha256=Daeiu871NcAp8uYi4eB_qHgvypG-HX0ioRQyQxFwjeg,1531
|
411
|
+
bec_widgets-2.11.0.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|