bec-widgets 0.53.0__py3-none-any.whl → 0.53.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.
- .gitlab-ci.yml +3 -2
- CHANGELOG.md +26 -29
- PKG-INFO +1 -1
- bec_widgets/cli/__init__.py +7 -1
- bec_widgets/cli/client_utils.py +11 -6
- bec_widgets/cli/server.py +4 -1
- bec_widgets/examples/mca_readout/mca_plot.py +3 -2
- bec_widgets/examples/mca_readout/mca_sim.py +3 -1
- bec_widgets/examples/motor_movement/motor_example.py +2 -1
- bec_widgets/examples/stream_plot/stream_plot.py +2 -1
- bec_widgets/utils/bec_connector.py +3 -1
- bec_widgets/utils/bec_dispatcher.py +2 -1
- bec_widgets/widgets/monitor/monitor.py +1 -1
- bec_widgets/widgets/motor_map/motor_map.py +1 -1
- bec_widgets/widgets/plots/image.py +1 -1
- bec_widgets/widgets/plots/motor_map.py +1 -1
- bec_widgets/widgets/plots/waveform.py +1 -1
- bec_widgets/widgets/scan_control/scan_control.py +1 -2
- {bec_widgets-0.53.0.dist-info → bec_widgets-0.53.2.dist-info}/METADATA +1 -1
- {bec_widgets-0.53.0.dist-info → bec_widgets-0.53.2.dist-info}/RECORD +28 -28
- docs/conf.py +1 -1
- pyproject.toml +1 -1
- tests/end-2-end/test_bec_dock_rpc_e2e.py +1 -1
- tests/end-2-end/test_bec_figure_rpc_e2e.py +1 -1
- tests/unit_tests/client_mocks.py +2 -1
- tests/unit_tests/test_stream_plot.py +2 -1
- {bec_widgets-0.53.0.dist-info → bec_widgets-0.53.2.dist-info}/WHEEL +0 -0
- {bec_widgets-0.53.0.dist-info → bec_widgets-0.53.2.dist-info}/licenses/LICENSE +0 -0
.gitlab-ci.yml
CHANGED
@@ -7,7 +7,7 @@ variables:
|
|
7
7
|
DOCKER_TLS_CERTDIR: ""
|
8
8
|
BEC_CORE_BRANCH: "main"
|
9
9
|
OPHYD_DEVICES_BRANCH: "main"
|
10
|
-
CHILD_PIPELINE_BRANCH:
|
10
|
+
CHILD_PIPELINE_BRANCH: $CI_DEFAULT_BRANCH
|
11
11
|
|
12
12
|
workflow:
|
13
13
|
rules:
|
@@ -34,6 +34,7 @@ stages:
|
|
34
34
|
|
35
35
|
before_script:
|
36
36
|
- if [[ "$CI_PROJECT_PATH" != "bec/bec_widgets" ]]; then
|
37
|
+
echo -e "\033[35;1m Using branch $CHILD_PIPELINE_BRANCH of BEC Widgets \033[0;m";
|
37
38
|
test -d bec_widgets || git clone --branch $CHILD_PIPELINE_BRANCH https://gitlab.psi.ch/bec/bec_widgets.git; cd bec_widgets;
|
38
39
|
fi
|
39
40
|
|
@@ -222,4 +223,4 @@ pages:
|
|
222
223
|
TARGET_BRANCH: $CI_COMMIT_TAG
|
223
224
|
- if: '$CI_COMMIT_REF_NAME == "main" && $CI_PROJECT_PATH == "bec/bec_widgets"'
|
224
225
|
script:
|
225
|
-
- curl -X POST -d "branches=$CI_COMMIT_REF_NAME" -d "token=$RTD_TOKEN" https://readthedocs.org/api/v2/webhook/
|
226
|
+
- curl -X POST -d "branches=$CI_COMMIT_REF_NAME" -d "token=$RTD_TOKEN" https://readthedocs.org/api/v2/webhook/bec-widgets/253243/
|
CHANGELOG.md
CHANGED
@@ -2,6 +2,32 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## v0.53.2 (2024-05-15)
|
6
|
+
|
7
|
+
### Ci
|
8
|
+
|
9
|
+
* ci: added echo to highlight the current branch ([`0490e80`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/0490e80c48563e4fb486bce903b3ce1f08863e83))
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* fix: check device class without importing to speed up initial import time ([`9f8fbdd`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/9f8fbdd5fc13cf2be10eacb41e10cf742864cd92))
|
14
|
+
|
15
|
+
* fix: speed up initial import times using lazy import (from bec_lib) ([`d1e6cd3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/d1e6cd388c6c9f345f52d6096d8a75a1fa7e6934))
|
16
|
+
|
17
|
+
* fix: adapt to bec_lib changes (no more submodules in `__init__.py`) ([`5d09a13`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/5d09a13d8820a8bdb900733c97593b723a2fce1d))
|
18
|
+
|
19
|
+
|
20
|
+
## v0.53.1 (2024-05-09)
|
21
|
+
|
22
|
+
### Ci
|
23
|
+
|
24
|
+
* ci: fixed rtd pages url ([`8ff3610`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/8ff36105d1e637c429915b4bfc2852d54a3c6f19))
|
25
|
+
|
26
|
+
### Fix
|
27
|
+
|
28
|
+
* fix: docs config ([`0f6a5e5`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/0f6a5e5fa9530969c98a9266c9ca7b89a378ff70))
|
29
|
+
|
30
|
+
|
5
31
|
## v0.53.0 (2024-05-09)
|
6
32
|
|
7
33
|
### Ci
|
@@ -145,32 +171,3 @@
|
|
145
171
|
### Feature
|
146
172
|
|
147
173
|
* feat(utils/thread_checker): util class to check the thread leakage for closeEvent in qt ([`71cb80d`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/71cb80d544c5f4ef499379a431ce0c17907c7ce8))
|
148
|
-
|
149
|
-
### Refactor
|
150
|
-
|
151
|
-
* refactor(utils/container_utils): part of the logic regarding locating widgets moved from BECFigure to utility class ([`77ff796`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/77ff7962cc91bce15d1c91b67b75b66fbea612c3))
|
152
|
-
|
153
|
-
|
154
|
-
## v0.46.7 (2024-04-21)
|
155
|
-
|
156
|
-
### Fix
|
157
|
-
|
158
|
-
* fix(plot/image): monitors are now validated with current bec session ([`67a99a1`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/67a99a1a19c261f9a1f09635f274cd9fbfe53639))
|
159
|
-
|
160
|
-
|
161
|
-
## v0.46.6 (2024-04-19)
|
162
|
-
|
163
|
-
### Ci
|
164
|
-
|
165
|
-
* ci: changed ophyd default branch to main ([`81484e8`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/81484e8160a4a09907313ed747c27ab3b6cbfdc4))
|
166
|
-
|
167
|
-
### Fix
|
168
|
-
|
169
|
-
* fix(cli): fixed support for devices as cli input ([`1111610`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/1111610f3206c5c46db6b4bd1e8827f1a4cd9e3f))
|
170
|
-
|
171
|
-
|
172
|
-
## v0.46.5 (2024-04-19)
|
173
|
-
|
174
|
-
### Test
|
175
|
-
|
176
|
-
* test(rpc/bec_figure): test_rpc_plotting_shortcuts_init_configs extended by testing scatter z gradient for BECWaveform through RPC ([`a156803`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/a1568033899bbcdbd457e697d6c8d478df26ba54))
|
PKG-INFO
CHANGED
bec_widgets/cli/__init__.py
CHANGED
@@ -1,2 +1,8 @@
|
|
1
|
-
from .
|
1
|
+
from bec_lib.utils.import_utils import lazy_import_from
|
2
|
+
|
3
|
+
# from .auto_updates import AutoUpdates, ScanInfo
|
4
|
+
# TODO: put back when Pydantic gets faster
|
5
|
+
AutoUpdates, ScanInfo = lazy_import_from(
|
6
|
+
"bec_widgets.cli.auto_updates", ("AutoUpdates", "ScanInfo")
|
7
|
+
)
|
2
8
|
from .client import BECDockArea, BECFigure
|
bec_widgets/cli/client_utils.py
CHANGED
@@ -12,18 +12,23 @@ import uuid
|
|
12
12
|
from functools import wraps
|
13
13
|
from typing import TYPE_CHECKING
|
14
14
|
|
15
|
-
from bec_lib import MessageEndpoints
|
16
|
-
from bec_lib.
|
17
|
-
from bec_lib.
|
15
|
+
from bec_lib.endpoints import MessageEndpoints
|
16
|
+
from bec_lib.service_config import ServiceConfig
|
17
|
+
from bec_lib.utils.import_utils import isinstance_based_on_class_name, lazy_import, lazy_import_from
|
18
18
|
from qtpy.QtCore import QCoreApplication
|
19
19
|
|
20
20
|
import bec_widgets.cli.client as client
|
21
|
-
from bec_widgets.cli.auto_updates import AutoUpdates
|
22
|
-
from bec_widgets.utils.bec_dispatcher import BECDispatcher
|
23
21
|
|
24
22
|
if TYPE_CHECKING:
|
23
|
+
from bec_lib.device import DeviceBase
|
24
|
+
|
25
25
|
from bec_widgets.cli.client import BECDockArea, BECFigure
|
26
26
|
|
27
|
+
messages = lazy_import("bec_lib.messages")
|
28
|
+
# from bec_lib.connector import MessageObject
|
29
|
+
MessageObject = lazy_import_from("bec_lib.connector", ("MessageObject",))
|
30
|
+
BECDispatcher = lazy_import_from("bec_widgets.utils.bec_dispatcher", ("BECDispatcher",))
|
31
|
+
|
27
32
|
|
28
33
|
def rpc_call(func):
|
29
34
|
"""
|
@@ -81,7 +86,7 @@ class BECGuiClientMixin:
|
|
81
86
|
|
82
87
|
@selected_device.setter
|
83
88
|
def selected_device(self, device: str | DeviceBase):
|
84
|
-
if
|
89
|
+
if isinstance_based_on_class_name(device, "bec_lib.device.DeviceBase"):
|
85
90
|
self._selected_device = device.name
|
86
91
|
elif isinstance(device, str):
|
87
92
|
self._selected_device = device
|
bec_widgets/cli/server.py
CHANGED
@@ -3,7 +3,8 @@ import threading
|
|
3
3
|
import time
|
4
4
|
from typing import Literal, Union
|
5
5
|
|
6
|
-
from bec_lib import MessageEndpoints
|
6
|
+
from bec_lib.endpoints import MessageEndpoints
|
7
|
+
from bec_lib.utils.import_utils import lazy_import
|
7
8
|
from qtpy.QtCore import QTimer
|
8
9
|
|
9
10
|
from bec_widgets.cli.rpc_register import RPCRegister
|
@@ -13,6 +14,8 @@ from bec_widgets.widgets.dock.dock_area import BECDockArea
|
|
13
14
|
from bec_widgets.widgets.figure import BECFigure
|
14
15
|
from bec_widgets.widgets.plots import BECCurve, BECImageShow, BECWaveform
|
15
16
|
|
17
|
+
messages = lazy_import("bec_lib.messages")
|
18
|
+
|
16
19
|
|
17
20
|
class BECWidgetsCLIServer:
|
18
21
|
WIDGETS = [BECWaveform, BECFigure, BECCurve, BECImageShow]
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# import simulation_progress as SP
|
2
2
|
import numpy as np
|
3
3
|
import pyqtgraph as pg
|
4
|
-
from bec_lib import
|
4
|
+
from bec_lib import messages
|
5
|
+
from bec_lib.endpoints import MessageEndpoints
|
5
6
|
from qtpy.QtCore import Signal as pyqtSignal
|
6
7
|
from qtpy.QtCore import Slot as pyqtSlot
|
7
8
|
from qtpy.QtWidgets import QApplication, QVBoxLayout, QWidget
|
@@ -140,7 +141,7 @@ class StreamApp(QWidget):
|
|
140
141
|
if __name__ == "__main__":
|
141
142
|
import argparse
|
142
143
|
|
143
|
-
from bec_lib import RedisConnector
|
144
|
+
from bec_lib.redis_connector import RedisConnector
|
144
145
|
|
145
146
|
parser = argparse.ArgumentParser(description="Stream App.")
|
146
147
|
parser.add_argument("--port", type=str, default="pc15543:6379", help="Port for RedisConnector")
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import time
|
2
2
|
|
3
|
-
from bec_lib import
|
3
|
+
from bec_lib import messages
|
4
|
+
from bec_lib.endpoints import MessageEndpoints
|
5
|
+
from bec_lib.redis_connector import RedisConnector
|
4
6
|
|
5
7
|
connector = RedisConnector("localhost:6379")
|
6
8
|
metadata = {}
|
@@ -5,7 +5,8 @@ from functools import partial
|
|
5
5
|
|
6
6
|
import numpy as np
|
7
7
|
import pyqtgraph as pg
|
8
|
-
from bec_lib import
|
8
|
+
from bec_lib import messages
|
9
|
+
from bec_lib.endpoints import MessageEndpoints
|
9
10
|
from pyqtgraph.Qt import QtCore, QtWidgets, uic
|
10
11
|
from qtpy import QtGui
|
11
12
|
from qtpy.QtCore import Qt, QThread
|
@@ -5,7 +5,8 @@ import time
|
|
5
5
|
import numpy as np
|
6
6
|
import pyqtgraph
|
7
7
|
import pyqtgraph as pg
|
8
|
-
from bec_lib import
|
8
|
+
from bec_lib import messages
|
9
|
+
from bec_lib.endpoints import MessageEndpoints
|
9
10
|
from bec_lib.redis_connector import RedisConnector
|
10
11
|
from pyqtgraph import mkBrush, mkPen
|
11
12
|
from pyqtgraph.Qt import QtCore, QtWidgets, uic
|
@@ -4,11 +4,13 @@ from __future__ import annotations
|
|
4
4
|
import time
|
5
5
|
from typing import Optional, Type
|
6
6
|
|
7
|
+
from bec_lib.utils.import_utils import lazy_import, lazy_import_from
|
7
8
|
from pydantic import BaseModel, Field, field_validator
|
8
9
|
from qtpy.QtCore import Slot as pyqtSlot
|
9
10
|
|
10
11
|
from bec_widgets.cli.rpc_register import RPCRegister
|
11
|
-
|
12
|
+
|
13
|
+
BECDispatcher = lazy_import_from("bec_widgets.utils.bec_dispatcher", ("BECDispatcher",))
|
12
14
|
|
13
15
|
|
14
16
|
class ConnectionConfig(BaseModel):
|
@@ -6,8 +6,9 @@ from collections.abc import Callable
|
|
6
6
|
from typing import TYPE_CHECKING, Union
|
7
7
|
|
8
8
|
import redis
|
9
|
-
from bec_lib import BECClient
|
9
|
+
from bec_lib.client import BECClient
|
10
10
|
from bec_lib.redis_connector import MessageObject, RedisConnector
|
11
|
+
from bec_lib.service_config import ServiceConfig
|
11
12
|
from qtpy.QtCore import QObject
|
12
13
|
from qtpy.QtCore import Signal as pyqtSignal
|
13
14
|
|
@@ -6,7 +6,7 @@ from typing import Any, Union
|
|
6
6
|
|
7
7
|
import numpy as np
|
8
8
|
import pyqtgraph as pg
|
9
|
-
from bec_lib import MessageEndpoints
|
9
|
+
from bec_lib.endpoints import MessageEndpoints
|
10
10
|
from qtpy import QtCore, QtGui
|
11
11
|
from qtpy.QtCore import Signal as pyqtSignal
|
12
12
|
from qtpy.QtCore import Slot as pyqtSlot
|
@@ -5,7 +5,7 @@ from typing import Any, Literal, Optional
|
|
5
5
|
|
6
6
|
import numpy as np
|
7
7
|
import pyqtgraph as pg
|
8
|
-
from bec_lib import MessageEndpoints
|
8
|
+
from bec_lib.endpoints import MessageEndpoints
|
9
9
|
from pydantic import BaseModel, Field, ValidationError
|
10
10
|
from qtpy.QtCore import QObject, QThread
|
11
11
|
from qtpy.QtCore import Signal as pyqtSignal
|
@@ -5,7 +5,7 @@ from typing import Optional, Union
|
|
5
5
|
|
6
6
|
import numpy as np
|
7
7
|
import pyqtgraph as pg
|
8
|
-
from bec_lib import MessageEndpoints
|
8
|
+
from bec_lib.endpoints import MessageEndpoints
|
9
9
|
from pydantic import Field
|
10
10
|
from qtpy import QtCore, QtGui
|
11
11
|
from qtpy.QtCore import Signal as pyqtSignal
|
@@ -5,7 +5,7 @@ from typing import Any, Literal, Optional
|
|
5
5
|
|
6
6
|
import numpy as np
|
7
7
|
import pyqtgraph as pg
|
8
|
-
from bec_lib import MessageEndpoints
|
8
|
+
from bec_lib.endpoints import MessageEndpoints
|
9
9
|
from bec_lib.scan_data import ScanData
|
10
10
|
from pydantic import BaseModel, Field, ValidationError
|
11
11
|
from pyqtgraph import mkBrush
|
@@ -1,27 +1,27 @@
|
|
1
1
|
.gitignore,sha256=cMQ1MLmnoR88aMCCJwUyfoTnufzl4-ckmHtlFUqHcT4,3253
|
2
|
-
.gitlab-ci.yml,sha256=
|
2
|
+
.gitlab-ci.yml,sha256=_PqbjtXpiMv7OxzoU-B47YU7majkBeE_JSKBtjGC5bQ,7431
|
3
3
|
.pylintrc,sha256=OstrgmEyP0smNFBKoIN5_26-UmNZgMHnbjvAWX0UrLs,18535
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=bnzC8RWkjZxz_Fztht4Vd0Fd47SxINN_nQfZXJCOSTQ,6890
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=J6k1s4Wh3sKQNB2flOk5lwfRkCUAKUDFbGwXYfMF6Tk,1063
|
8
8
|
README.md,sha256=y4jB6wvArS7N8_iTbKWnSM_oRAqLA2GqgzUR-FMh5sU,2645
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=5gV_xHg0yZ-pGSUwgMz8CEkhbEtBvnCuc3POCuA1lbY,1776
|
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
|
13
13
|
.gitlab/issue_templates/feature_request_template.md,sha256=vjxCnmj53Mp4FPzCrNxhkO-8StRQUZ36PlXu4K8VGaI,1543
|
14
14
|
.gitlab/merge_request_templates/default.md,sha256=tfyFA0hRCsIunbLGSlGbxWBQFeB3USpsA3H7IvwQ5UY,715
|
15
15
|
bec_widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
-
bec_widgets/cli/__init__.py,sha256=
|
16
|
+
bec_widgets/cli/__init__.py,sha256=v5oaQMydRVEaqKNI73A3_AbQ0efXxBt2SLoUBKANrV8,301
|
17
17
|
bec_widgets/cli/auto_updates.py,sha256=ptZeBKr13o9THc8oKLn93K_16i6G3pxzw8hZ4MUgjW4,3845
|
18
18
|
bec_widgets/cli/bec_widgets_icon.png,sha256=K8dgGwIjalDh9PRHUsSQBqgdX7a00nM3igZdc20pkYM,1747017
|
19
19
|
bec_widgets/cli/client.py,sha256=0qM-Zve4cXKNXrSNkxvTDtiWo6NvsYZGauOwLn4Rk3w,45622
|
20
|
-
bec_widgets/cli/client_utils.py,sha256=
|
20
|
+
bec_widgets/cli/client_utils.py,sha256=eQ7eDjyrXToQ5es_INFA5YIzhH166E1s4zIEVYj95mA,10676
|
21
21
|
bec_widgets/cli/generate_cli.py,sha256=FFDAogkEewfXMP20jkBBB08vcQdg5k1gnHpldXUcgOw,4101
|
22
22
|
bec_widgets/cli/rpc_register.py,sha256=QxXUZu5XNg00Yf5O3UHWOXg3-f_pzKjjoZYMOa-MOJc,2216
|
23
23
|
bec_widgets/cli/rpc_wigdet_handler.py,sha256=u54ctT3-pHIf_4788didF4YBXbvNFQI1TqleSILEaZU,783
|
24
|
-
bec_widgets/cli/server.py,sha256=
|
24
|
+
bec_widgets/cli/server.py,sha256=puRWFzb2HAjeWQYgTFp2gw9RVlNZh95Dd7JUeGVf0Uk,5868
|
25
25
|
bec_widgets/examples/__init__.py,sha256=WWQ0cu7m8sA4Ehy-DWdTIqSISjaHsbxhsNmNrMnhDZU,202
|
26
26
|
bec_widgets/examples/eiger_plot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
bec_widgets/examples/eiger_plot/eiger_plot.py,sha256=Uxl2Usf8jEzaX7AT8zVqa1x8ZIEgI1HmazSlb-tRFWE,10359
|
@@ -31,8 +31,8 @@ bec_widgets/examples/jupyter_console/jupyter_console_window.py,sha256=s8ysnlktLv
|
|
31
31
|
bec_widgets/examples/jupyter_console/jupyter_console_window.ui,sha256=2A2mNTUMZBYygz8K4qWzrcjnNqZBMVyeHm26iLZVRWI,1473
|
32
32
|
bec_widgets/examples/jupyter_console/terminal_icon.png,sha256=bJl7Tft4Fi2uxvuXI8o14uMHnI9eAWKSU2uftXCH9ws,3889
|
33
33
|
bec_widgets/examples/mca_readout/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
|
-
bec_widgets/examples/mca_readout/mca_plot.py,sha256=
|
35
|
-
bec_widgets/examples/mca_readout/mca_sim.py,sha256=
|
34
|
+
bec_widgets/examples/mca_readout/mca_plot.py,sha256=vjIOcTtHIsLmHW6N-bI7RTyjeYg0r8Ob-nZvvGC0kro,5124
|
35
|
+
bec_widgets/examples/mca_readout/mca_sim.py,sha256=IbVW10lmorsxP0Ctqe81-b_WBi96jBPgzAHCUBoPzTY,818
|
36
36
|
bec_widgets/examples/modular_app/___init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
37
|
bec_widgets/examples/modular_app/modular.ui,sha256=QM_sCgVELDOt18-4LHNRTjEcq2Ogf6e-E0-JidgkuGY,2450
|
38
38
|
bec_widgets/examples/modular_app/modular_app.py,sha256=F-VuxVfTL6WC2aPz1PIXKhU2cEcP1F8VXp-AwdWnk9o,6178
|
@@ -42,13 +42,13 @@ bec_widgets/examples/motor_movement/csax_bec_config.yaml,sha256=cqhzwfIhFgHfCt90
|
|
42
42
|
bec_widgets/examples/motor_movement/csaxs_config.yaml,sha256=poNndp-1ptdnriIJ_RTnbAimFlOJ45VdxfkclGEQlgc,344
|
43
43
|
bec_widgets/examples/motor_movement/motor_control_compilations.py,sha256=gj7SRjdKXDuX4jl4e8bnpM9U6l7B1wvwgGUPcVFOGCU,8978
|
44
44
|
bec_widgets/examples/motor_movement/motor_controller.ui,sha256=83XX6NGILwntoUIghvzWnMuGf80O8khK3SduVKTAEFM,29105
|
45
|
-
bec_widgets/examples/motor_movement/motor_example.py,sha256=
|
45
|
+
bec_widgets/examples/motor_movement/motor_example.py,sha256=P7gYgHldDR1tmAsEBePQRT7xIylsaN_jNWviwpDNek4,53350
|
46
46
|
bec_widgets/examples/stream_plot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
bec_widgets/examples/stream_plot/line_plot.ui,sha256=rgNfhOXu1AcWF0P6wnOlmJKDjS-VIoduVrREvmzJQR8,4626
|
48
|
-
bec_widgets/examples/stream_plot/stream_plot.py,sha256=
|
48
|
+
bec_widgets/examples/stream_plot/stream_plot.py,sha256=PgzFOwAqX-2QdrCyURn6fCBQX_YA_nmme95NrFfX0CM,12206
|
49
49
|
bec_widgets/utils/__init__.py,sha256=PAHNbPFnPD-XGxKBZ7ctx9WBrvm9MArkCYDNfoOxVJA,449
|
50
|
-
bec_widgets/utils/bec_connector.py,sha256=
|
51
|
-
bec_widgets/utils/bec_dispatcher.py,sha256=
|
50
|
+
bec_widgets/utils/bec_connector.py,sha256=CRaYgnxPS0Yxf5nOH66q3oa8HtYnjgwyWlE9lCFn0k0,5285
|
51
|
+
bec_widgets/utils/bec_dispatcher.py,sha256=nLdcj2u4dy8-ZR03XioCzr7hBg9Wq4Kw58OU6sDorT4,5593
|
52
52
|
bec_widgets/utils/bec_table.py,sha256=nA2b8ukSeUfquFMAxGrUVOqdrzMoDYD6O_4EYbOG2zk,717
|
53
53
|
bec_widgets/utils/colors.py,sha256=JsLxzkxbw-I8GIuvnIKyiM83n0edhyMG2Fa4Ffm62ww,2392
|
54
54
|
bec_widgets/utils/container_utils.py,sha256=m3VUyAYmSWkEwApP9tBvKxPYVtc2kHw4toxIpMryJy4,1495
|
@@ -72,7 +72,7 @@ bec_widgets/widgets/figure/figure.py,sha256=OSF5y9iMEjhZmPC1MvjCVASfDXapf_o4jeUH
|
|
72
72
|
bec_widgets/widgets/monitor/__init__.py,sha256=afXuZcBOxNAuYdCkIQXX5J60R5A3Q_86lNEW2vpFtPI,32
|
73
73
|
bec_widgets/widgets/monitor/config_dialog.py,sha256=ThR1ZGnIUHqsW4t6ns9pBLTINYLBQwDtS-ipjOg4snU,19993
|
74
74
|
bec_widgets/widgets/monitor/config_dialog.ui,sha256=ISMcF7CLTAMXhfZh2Yv5yezzAjMtb9fxY1pmX4B_jCg,5932
|
75
|
-
bec_widgets/widgets/monitor/monitor.py,sha256=
|
75
|
+
bec_widgets/widgets/monitor/monitor.py,sha256=3PU0NnbnE-CjGggT7IadDfiOjXGY_85g2HSyU8BmrBM,30229
|
76
76
|
bec_widgets/widgets/monitor/tab_template.ui,sha256=JVB5fkzVhTjxMn9EdZCXsnfzBkeZpFMdTRuqTNSDSSo,4904
|
77
77
|
bec_widgets/widgets/monitor/example_configs/config_device.yaml,sha256=jn8EGvL_fk4gizCAA8P--OGn1RZGnz2aSlzQI9BcYlU,1172
|
78
78
|
bec_widgets/widgets/monitor/example_configs/config_scans.yaml,sha256=TwMhiE_4p88gBlaeoztmkwNObAeoVXLeBFIUsV1Nwu0,1889
|
@@ -83,18 +83,18 @@ bec_widgets/widgets/motor_control/motor_control_relative.ui,sha256=PulNJNiws7TRA
|
|
83
83
|
bec_widgets/widgets/motor_control/motor_control_selection.ui,sha256=vXXpvNWuL6xyHhW7Lx1zmVFX-95Z5AXGlhKQD2HmM1A,1779
|
84
84
|
bec_widgets/widgets/motor_control/motor_control_table.ui,sha256=t6aRKiSmutMfp0AyupavbCs0cal-FANEnlKQiPzC9PQ,2792
|
85
85
|
bec_widgets/widgets/motor_map/__init__.py,sha256=K3c-3A_LbxK0UJ0_bV3opL-wGLTwBLendsJXsg8GAqE,32
|
86
|
-
bec_widgets/widgets/motor_map/motor_map.py,sha256=
|
86
|
+
bec_widgets/widgets/motor_map/motor_map.py,sha256=Gd6pl5kPwWwMn_guKA6znz5Rbkw711uoAAUzmdWvi2I,21723
|
87
87
|
bec_widgets/widgets/plots/__init__.py,sha256=yaCWQEXiEVj3Oh9qvD3UDzY2HE2PiDKKyKINEcVeL2k,238
|
88
|
-
bec_widgets/widgets/plots/image.py,sha256=
|
89
|
-
bec_widgets/widgets/plots/motor_map.py,sha256=
|
88
|
+
bec_widgets/widgets/plots/image.py,sha256=cfxdd_CQsEy-N_jgcjJICLIY4FZH9yJ7qcBsfjrqTdo,32444
|
89
|
+
bec_widgets/widgets/plots/motor_map.py,sha256=CVlPG_zO1Di_v1Vs4AMxZFtlGjm_R8Lrw9cBe6bRGS4,15223
|
90
90
|
bec_widgets/widgets/plots/plot_base.py,sha256=oNUXEe94bD0_fVu-HPMRaoAuwPMW0DOAN8vvOeRz254,8513
|
91
|
-
bec_widgets/widgets/plots/waveform.py,sha256=
|
91
|
+
bec_widgets/widgets/plots/waveform.py,sha256=MEtgEVgZrz7K5axO4nuGXU0KJPngb0bqWABhi_eRUao,28621
|
92
92
|
bec_widgets/widgets/scan_control/__init__.py,sha256=IOfHl15vxb_uC6KN62-PeUzbBha_vQyqkkXbJ2HU674,38
|
93
|
-
bec_widgets/widgets/scan_control/scan_control.py,sha256=
|
93
|
+
bec_widgets/widgets/scan_control/scan_control.py,sha256=B5n2U2iVtTCY3Tx93JyBqzGCDCmWhWwAOhbPelLI-bs,17168
|
94
94
|
bec_widgets/widgets/toolbar/__init__.py,sha256=d-TP4_cr_VbpwreMM4ePnfZ5YXsEPQ45ibEf75nuGoE,36
|
95
95
|
bec_widgets/widgets/toolbar/toolbar.py,sha256=e0zCD_0q7K4NVhrzD8001Qvfxt-VhqHTgofchS9NgCM,5125
|
96
96
|
docs/Makefile,sha256=i2WHuFlgfyAPEW4ssEP8NY4cOibDJrVjvzSEU8_Ggwc,634
|
97
|
-
docs/conf.py,sha256=
|
97
|
+
docs/conf.py,sha256=pASMheaNEMnHl91PHQWUW0uu3OqXByYnDeSrlrVAUeI,2474
|
98
98
|
docs/index.md,sha256=6HrqaPXb5uUPEtM2gZaVUi1wM1kUYmdC2aIFpmItzZ0,453
|
99
99
|
docs/make.bat,sha256=vKazJE8RW49Cy8K7hm8QYbletvAd8YkeKsaPA_dWnXs,800
|
100
100
|
docs/requirements.txt,sha256=5IJN7-VApjTeFouHsaWAb5b4p6wS6wI9fKcJBxcX9QY,134
|
@@ -118,11 +118,11 @@ docs/user/widgets/w1D.gif,sha256=tuHbleJpl6bJFNNC2OdndF5LF7IyfvlkFCMGZajrQPs,622
|
|
118
118
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
119
119
|
tests/end-2-end/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
120
120
|
tests/end-2-end/conftest.py,sha256=b5Yebbj8C1-IcXq23XGbOnXF0kOZD_Po46Z-p4cBwfs,1346
|
121
|
-
tests/end-2-end/test_bec_dock_rpc_e2e.py,sha256=
|
122
|
-
tests/end-2-end/test_bec_figure_rpc_e2e.py,sha256=
|
121
|
+
tests/end-2-end/test_bec_dock_rpc_e2e.py,sha256=NnvlTpyHrA8DJ0RHXtQfp4rApuszv7NXZuWrlvthkC0,4558
|
122
|
+
tests/end-2-end/test_bec_figure_rpc_e2e.py,sha256=rQh9H6k-Ln4yDfCYIYv2DW-l70PXY_MjzshmZdirBgQ,5471
|
123
123
|
tests/end-2-end/test_rpc_register_e2e.py,sha256=Jrv46F-fyJa0tls1KPTeIxXQ4oUNgWkhAMwzvMQBRR8,1581
|
124
124
|
tests/unit_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
125
|
-
tests/unit_tests/client_mocks.py,sha256=
|
125
|
+
tests/unit_tests/client_mocks.py,sha256=ErrklY7446jXE2_XGKebs_a-2Pqif5ECOPvxVAKRZXY,4170
|
126
126
|
tests/unit_tests/conftest.py,sha256=KrnktXPWmZhnKNue-xGWOLD1XGEvdz9Vf7V2eO3XQ3A,596
|
127
127
|
tests/unit_tests/test_bec_connector.py,sha256=f2XXGGw3NoZLIUrDuZuEWwF_ttOYmmquCgUrV5XkIOY,1951
|
128
128
|
tests/unit_tests/test_bec_dispatcher.py,sha256=rYPiRizHaswhGZw55IBMneDFxmPiCCLAZQBqjEkpdyY,3992
|
@@ -140,7 +140,7 @@ tests/unit_tests/test_motor_map.py,sha256=aKhJtgHOLMOlpniguuH5iGKh72ihYZ1L2S2KEm
|
|
140
140
|
tests/unit_tests/test_plot_base.py,sha256=bOdlgAxh9oKk5PwiQ_MSFmzr44uJ61Tlg242RCIhl5c,2610
|
141
141
|
tests/unit_tests/test_rpc_register.py,sha256=hECjZEimd440mwRrO0rg7L3PKN7__3DgjmESN6wx3bo,1179
|
142
142
|
tests/unit_tests/test_scan_control.py,sha256=7dtGpE0g4FqUhhQeCkyJl-9o7NH3DFZJgEaqDmBYbBc,7551
|
143
|
-
tests/unit_tests/test_stream_plot.py,sha256=
|
143
|
+
tests/unit_tests/test_stream_plot.py,sha256=gMd-ga72OCGzE09vRuoLDH8dqeEJOnrvK-4Lu-TG5RY,5760
|
144
144
|
tests/unit_tests/test_validator_errors.py,sha256=NFxyv0TIOXeZKZRRUBfVQ7bpunwY4KkG95yTUdQmvns,3532
|
145
145
|
tests/unit_tests/test_waveform1d.py,sha256=cBtESTQgsVQdv-Wl75eHK9D8YY-b60Z5wqtPCo9ohu0,15002
|
146
146
|
tests/unit_tests/test_widget_io.py,sha256=FeL3ZYSBQnRt6jxj8VGYw1cmcicRQyHKleahw7XIyR0,3475
|
@@ -150,7 +150,7 @@ tests/unit_tests/test_configs/config_device_no_entry.yaml,sha256=hdvue9KLc_kfNzG
|
|
150
150
|
tests/unit_tests/test_configs/config_scan.yaml,sha256=vo484BbWOjA_e-h6bTjSV9k7QaQHrlAvx-z8wtY-P4E,1915
|
151
151
|
tests/unit_tests/test_msgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
152
152
|
tests/unit_tests/test_msgs/available_scans_message.py,sha256=m_z97hIrjHXXMa2Ex-UvsPmTxOYXfjxyJaGkIY6StTY,46532
|
153
|
-
bec_widgets-0.53.
|
154
|
-
bec_widgets-0.53.
|
155
|
-
bec_widgets-0.53.
|
156
|
-
bec_widgets-0.53.
|
153
|
+
bec_widgets-0.53.2.dist-info/METADATA,sha256=J6k1s4Wh3sKQNB2flOk5lwfRkCUAKUDFbGwXYfMF6Tk,1063
|
154
|
+
bec_widgets-0.53.2.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
155
|
+
bec_widgets-0.53.2.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
156
|
+
bec_widgets-0.53.2.dist-info/RECORD,,
|
docs/conf.py
CHANGED
@@ -18,7 +18,7 @@ author = "Paul Scherrer Institute"
|
|
18
18
|
# -- General configuration ---------------------------------------------------
|
19
19
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
20
20
|
|
21
|
-
current_path = pathlib.Path(__file__).parent.parent.
|
21
|
+
current_path = pathlib.Path(__file__).parent.parent.resolve()
|
22
22
|
version_path = f"{current_path}/pyproject.toml"
|
23
23
|
|
24
24
|
|
pyproject.toml
CHANGED
tests/unit_tests/client_mocks.py
CHANGED
@@ -3,9 +3,10 @@ from unittest.mock import MagicMock, patch
|
|
3
3
|
|
4
4
|
import fakeredis
|
5
5
|
import pytest
|
6
|
-
from bec_lib import BECClient
|
6
|
+
from bec_lib.client import BECClient
|
7
7
|
from bec_lib.device import Positioner
|
8
8
|
from bec_lib.devicemanager import DeviceContainer
|
9
|
+
from bec_lib.redis_connector import RedisConnector
|
9
10
|
|
10
11
|
|
11
12
|
class FakeDevice:
|
@@ -4,7 +4,8 @@ from unittest import mock
|
|
4
4
|
|
5
5
|
import numpy as np
|
6
6
|
import pytest
|
7
|
-
from bec_lib import
|
7
|
+
from bec_lib import messages
|
8
|
+
from bec_lib.redis_connector import RedisConnector
|
8
9
|
from pytestqt import qtbot
|
9
10
|
|
10
11
|
from bec_widgets.examples.stream_plot.stream_plot import StreamPlot
|
File without changes
|
File without changes
|