bec-widgets 0.57.4__tar.gz → 0.57.6__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.
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/CHANGELOG.md +24 -26
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/PKG-INFO +1 -1
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/client.py +101 -85
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/jupyter_console/jupyter_console_window.py +4 -3
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/figure.py +170 -116
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/image/image.py +0 -1
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/plot_base.py +0 -14
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/waveform/waveform.py +79 -29
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/spiral_progress_bar/ring.py +72 -1
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/spiral_progress_bar/spiral_progress_bar.py +22 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/bec_figure.md +2 -2
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/pyproject.toml +1 -1
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/end-2-end/test_bec_figure_rpc_e2e.py +2 -2
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/end-2-end/test_rpc_register_e2e.py +1 -1
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.git_hooks/pre-commit +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.gitignore +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.gitlab/issue_templates/bug_report_template.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.gitlab/issue_templates/documentation_update_template.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.gitlab/issue_templates/feature_request_template.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.gitlab/merge_request_templates/default.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.gitlab-ci.yml +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.pylintrc +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/.readthedocs.yaml +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/LICENSE +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/README.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/assets/bec_widgets_icon.png +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/assets/terminal_icon.png +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/auto_updates.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/client_utils.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/generate_cli.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/rpc_register.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/rpc_wigdet_handler.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/cli/server.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/jupyter_console/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/jupyter_console/jupyter_console_window.ui +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/motor_movement/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/motor_movement/motor_control_compilations.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/examples/motor_movement/motor_controller.ui +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/bec_connector.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/bec_dispatcher.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/bec_table.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/colors.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/container_utils.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/crosshair.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/entry_validator.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/layout_manager.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/plugin_utils.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/rpc_decorator.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/thread_checker.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/ui_loader.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/validator_delegate.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/widget_io.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/utils/yaml_dialog.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/dock/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/dock/dock.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/dock/dock_area.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/image/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/image/image_item.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/image/image_processor.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/motor_map/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/motor_map/motor_map.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/waveform/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/figure/plots/waveform/waveform_curve.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/jupyter_console/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/jupyter_console/jupyter_console.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/motor_control.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/motor_table/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/motor_table/motor_table.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/motor_table/motor_table.ui +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/movement_absolute/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/movement_absolute/movement_absolute.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/movement_absolute/movement_absolute.ui +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/movement_relative/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/movement_relative/movement_relative.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/movement_relative/movement_relative.ui +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/selection/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/selection/selection.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/motor_control/selection/selection.ui +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/scan_control/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/scan_control/scan_control.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/spiral_progress_bar/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/toolbar/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/bec_widgets/widgets/toolbar/toolbar.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/Makefile +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/_static/custom.css +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/_templates/custom-class-template.rst +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/_templates/custom-module-template.rst +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/api_reference/api_reference.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/apps_48dp.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/display_settings_48dp.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/index_api.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/index_contribute.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/index_getting_started.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/index_user_guide.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/assets/rocket_launch_48dp.svg +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/conf.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/developer/developer.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/index.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/introduction/introduction.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/make.bat +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/requirements.txt +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/api_reference/api_reference.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/applications/applications.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/customisation.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/getting_started/auto_updates.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/getting_started/getting_started.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/getting_started/gui_complex_gui.gif +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/getting_started/installation.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/getting_started/quick_start.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/user.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/image_plot.gif +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/motor.gif +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/progress_bar.gif +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/scatter_2D.gif +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/spiral_progress_bar.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/w1D.gif +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/docs/user/widgets/widgets.md +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/end-2-end/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/end-2-end/conftest.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/end-2-end/test_bec_dock_rpc_e2e.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/client_mocks.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/conftest.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_bec_connector.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_bec_dispatcher.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_bec_dock.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_bec_figure.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_bec_motor_map.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_client_utils.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_configs/config_device.yaml +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_configs/config_device_no_entry.yaml +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_configs/config_scan.yaml +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_crosshair.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_generate_cli_client.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_motor_control.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_msgs/__init__.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_msgs/available_scans_message.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_plot_base.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_rpc_register.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_scan_control.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_spiral_progress_bar.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_waveform1d.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_widget_io.py +0 -0
- {bec_widgets-0.57.4 → bec_widgets-0.57.6}/tests/unit_tests/test_yaml_dialog.py +0 -0
@@ -2,6 +2,30 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## v0.57.6 (2024-06-06)
|
6
|
+
|
7
|
+
### Fix
|
8
|
+
|
9
|
+
* fix(bar): docstrings extended ([`edb1775`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/edb1775967c3ff0723d0edad2b764f1ffc832b7c))
|
10
|
+
|
11
|
+
|
12
|
+
## v0.57.5 (2024-06-06)
|
13
|
+
|
14
|
+
### Documentation
|
15
|
+
|
16
|
+
* docs(figure): docs adjusted to be compatible with new signature ([`c037b87`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/c037b87675af91b26e8c7c60e76622d4ed4cf5d5))
|
17
|
+
|
18
|
+
### Fix
|
19
|
+
|
20
|
+
* fix(waveform): added .plot method with the same signature as BECFigure.plot ([`8479caf`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/8479caf53a7325788ca264e5bd9aee01f1d4c5a0))
|
21
|
+
|
22
|
+
* fix(plot_base): .plot removed from plot_base.py, because there is no use case for it ([`82e2c89`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/82e2c898d2e26f786b2d481f85c647472675e75b))
|
23
|
+
|
24
|
+
### Refactor
|
25
|
+
|
26
|
+
* refactor(figure): logic for .add_image and .image consolidated; logic for .add_plot and .plot consolidated ([`52bc322`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/52bc322b2b8d3ef92ff3480e61bddaf32464f976))
|
27
|
+
|
28
|
+
|
5
29
|
## v0.57.4 (2024-06-06)
|
6
30
|
|
7
31
|
### Fix
|
@@ -128,34 +152,8 @@
|
|
128
152
|
|
129
153
|
* docs(examples): example apps section deleted ([`ad208a5`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/ad208a5ef8495c45a8b83a4850ba9a1041b42717))
|
130
154
|
|
131
|
-
### Feature
|
132
|
-
|
133
|
-
* feat(utils/ui_loader): universal ui loader for pyside/pyqt ([`0fea8d6`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/0fea8d606574fa99dda3b117da5d5209c251f694))
|
134
|
-
|
135
155
|
### Fix
|
136
156
|
|
137
157
|
* fix(examples): outdated examples removed (mca_plot.py, stream_plot.py, motor_example.py) ([`ddc9510`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/ddc9510c2ba8dadf291809eeb5b135a105259492))
|
138
158
|
|
139
159
|
* fix: compatibility adjustment to .ui loading and tests for PySide6 ([`07b99d9`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/07b99d91a57a645cddd76294f48d78773e4c9ea5))
|
140
|
-
|
141
|
-
|
142
|
-
## v0.55.0 (2024-05-24)
|
143
|
-
|
144
|
-
### Feature
|
145
|
-
|
146
|
-
* feat(widgets/progressbar): SpiralProgressBar added with rpc interface ([`76bd0d3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/76bd0d339ac9ae9e8a3baa0d0d4e951ec1d09670))
|
147
|
-
|
148
|
-
|
149
|
-
## v0.54.0 (2024-05-24)
|
150
|
-
|
151
|
-
### Build
|
152
|
-
|
153
|
-
* build: added pyqt6 as sphinx build dependency ([`a47a8ec`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/a47a8ec413934cf7fce8d5b7a5913371d4b3b4a5))
|
154
|
-
|
155
|
-
### Feature
|
156
|
-
|
157
|
-
* feat(figure): changes to support direct plot functionality ([`fc4d0f3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/fc4d0f3bb2a7c2fca9c326d86eb68b305bcd548b))
|
158
|
-
|
159
|
-
### Refactor
|
160
|
-
|
161
|
-
* refactor(reconstruction): repository structure is changed to separate assets needed for each widget ([`3455c60`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/3455c602361d3b5cc3ff9190f9d2870474becf8a))
|
@@ -128,17 +128,6 @@ class BECPlotBase(RPCBase):
|
|
128
128
|
lock(bool): True to lock, False to unlock.
|
129
129
|
"""
|
130
130
|
|
131
|
-
@rpc_call
|
132
|
-
def plot(self, data_x: "list | np.ndarray", data_y: "list | np.ndarray", **kwargs):
|
133
|
-
"""
|
134
|
-
Plot custom data on the plot widget. These data are not saved in config.
|
135
|
-
|
136
|
-
Args:
|
137
|
-
data_x(list|np.ndarray): x-axis data
|
138
|
-
data_y(list|np.ndarray): y-axis data
|
139
|
-
**kwargs: Keyword arguments for the plot.
|
140
|
-
"""
|
141
|
-
|
142
131
|
@rpc_call
|
143
132
|
def remove(self):
|
144
133
|
"""
|
@@ -165,57 +154,36 @@ class BECWaveform(RPCBase):
|
|
165
154
|
"""
|
166
155
|
|
167
156
|
@rpc_call
|
168
|
-
def
|
157
|
+
def plot(
|
169
158
|
self,
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
159
|
+
x: "list | np.ndarray | None" = None,
|
160
|
+
y: "list | np.ndarray | None" = None,
|
161
|
+
x_name: "str | None" = None,
|
162
|
+
y_name: "str | None" = None,
|
163
|
+
z_name: "str | None" = None,
|
164
|
+
x_entry: "str | None" = None,
|
165
|
+
y_entry: "str | None" = None,
|
166
|
+
z_entry: "str | None" = None,
|
167
|
+
color: "str | None" = None,
|
168
|
+
color_map_z: "str | None" = "plasma",
|
169
|
+
label: "str | None" = None,
|
170
|
+
validate: "bool" = True,
|
181
171
|
) -> "BECCurve":
|
182
172
|
"""
|
183
|
-
|
184
|
-
|
173
|
+
Plot a curve to the plot widget.
|
185
174
|
Args:
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
z_name(str):
|
191
|
-
|
192
|
-
|
175
|
+
x(list | np.ndarray): Custom x data to plot.
|
176
|
+
y(list | np.ndarray): Custom y data to plot.
|
177
|
+
x_name(str): The name of the device for the x-axis.
|
178
|
+
y_name(str): The name of the device for the y-axis.
|
179
|
+
z_name(str): The name of the device for the z-axis.
|
180
|
+
x_entry(str): The name of the entry for the x-axis.
|
181
|
+
y_entry(str): The name of the entry for the y-axis.
|
182
|
+
z_entry(str): The name of the entry for the z-axis.
|
183
|
+
color(str): The color of the curve.
|
193
184
|
color_map_z(str): The color map to use for the z-axis.
|
194
|
-
label(str
|
195
|
-
|
196
|
-
|
197
|
-
Returns:
|
198
|
-
BECCurve: The curve object.
|
199
|
-
"""
|
200
|
-
|
201
|
-
@rpc_call
|
202
|
-
def add_curve_custom(
|
203
|
-
self,
|
204
|
-
x: "list | np.ndarray",
|
205
|
-
y: "list | np.ndarray",
|
206
|
-
label: "str" = None,
|
207
|
-
color: "str" = None,
|
208
|
-
**kwargs,
|
209
|
-
) -> "BECCurve":
|
210
|
-
"""
|
211
|
-
Add a custom data curve to the plot widget.
|
212
|
-
|
213
|
-
Args:
|
214
|
-
x(list|np.ndarray): X data of the curve.
|
215
|
-
y(list|np.ndarray): Y data of the curve.
|
216
|
-
label(str, optional): Label of the curve. Defaults to None.
|
217
|
-
color(str, optional): Color of the curve. Defaults to None.
|
218
|
-
**kwargs: Additional keyword arguments for the curve configuration.
|
185
|
+
label(str): The label of the curve.
|
186
|
+
validate(bool): If True, validate the device names and entries.
|
219
187
|
|
220
188
|
Returns:
|
221
189
|
BECCurve: The curve object.
|
@@ -409,14 +377,39 @@ class BECWaveform(RPCBase):
|
|
409
377
|
"""
|
410
378
|
|
411
379
|
@rpc_call
|
412
|
-
def plot(
|
380
|
+
def plot(
|
381
|
+
self,
|
382
|
+
x: "list | np.ndarray | None" = None,
|
383
|
+
y: "list | np.ndarray | None" = None,
|
384
|
+
x_name: "str | None" = None,
|
385
|
+
y_name: "str | None" = None,
|
386
|
+
z_name: "str | None" = None,
|
387
|
+
x_entry: "str | None" = None,
|
388
|
+
y_entry: "str | None" = None,
|
389
|
+
z_entry: "str | None" = None,
|
390
|
+
color: "str | None" = None,
|
391
|
+
color_map_z: "str | None" = "plasma",
|
392
|
+
label: "str | None" = None,
|
393
|
+
validate: "bool" = True,
|
394
|
+
) -> "BECCurve":
|
413
395
|
"""
|
414
|
-
Plot
|
415
|
-
|
396
|
+
Plot a curve to the plot widget.
|
416
397
|
Args:
|
417
|
-
|
418
|
-
|
419
|
-
|
398
|
+
x(list | np.ndarray): Custom x data to plot.
|
399
|
+
y(list | np.ndarray): Custom y data to plot.
|
400
|
+
x_name(str): The name of the device for the x-axis.
|
401
|
+
y_name(str): The name of the device for the y-axis.
|
402
|
+
z_name(str): The name of the device for the z-axis.
|
403
|
+
x_entry(str): The name of the entry for the x-axis.
|
404
|
+
y_entry(str): The name of the entry for the y-axis.
|
405
|
+
z_entry(str): The name of the entry for the z-axis.
|
406
|
+
color(str): The color of the curve.
|
407
|
+
color_map_z(str): The color map to use for the z-axis.
|
408
|
+
label(str): The label of the curve.
|
409
|
+
validate(bool): If True, validate the device names and entries.
|
410
|
+
|
411
|
+
Returns:
|
412
|
+
BECCurve: The curve object.
|
420
413
|
"""
|
421
414
|
|
422
415
|
@rpc_call
|
@@ -469,14 +462,14 @@ class BECFigure(RPCBase):
|
|
469
462
|
@rpc_call
|
470
463
|
def add_plot(
|
471
464
|
self,
|
465
|
+
x: "list | np.ndarray" = None,
|
466
|
+
y: "list | np.ndarray" = None,
|
472
467
|
x_name: "str" = None,
|
473
468
|
y_name: "str" = None,
|
474
469
|
z_name: "str" = None,
|
475
470
|
x_entry: "str" = None,
|
476
471
|
y_entry: "str" = None,
|
477
472
|
z_entry: "str" = None,
|
478
|
-
x: "list | np.ndarray" = None,
|
479
|
-
y: "list | np.ndarray" = None,
|
480
473
|
color: "Optional[str]" = None,
|
481
474
|
color_map_z: "Optional[str]" = "plasma",
|
482
475
|
label: "Optional[str]" = None,
|
@@ -490,7 +483,18 @@ class BECFigure(RPCBase):
|
|
490
483
|
Add a Waveform1D plot to the figure at the specified position.
|
491
484
|
|
492
485
|
Args:
|
493
|
-
|
486
|
+
x(list | np.ndarray): Custom x data to plot.
|
487
|
+
y(list | np.ndarray): Custom y data to plot.
|
488
|
+
x_name(str): The name of the device for the x-axis.
|
489
|
+
y_name(str): The name of the device for the y-axis.
|
490
|
+
z_name(str): The name of the device for the z-axis.
|
491
|
+
x_entry(str): The name of the entry for the x-axis.
|
492
|
+
y_entry(str): The name of the entry for the y-axis.
|
493
|
+
z_entry(str): The name of the entry for the z-axis.
|
494
|
+
color(str): The color of the curve.
|
495
|
+
color_map_z(str): The color map to use for the z-axis.
|
496
|
+
label(str): The label of the curve.
|
497
|
+
validate(bool): If True, validate the device names and entries.
|
494
498
|
row(int): The row coordinate of the widget in the figure. If not provided, the next empty row will be used.
|
495
499
|
col(int): The column coordinate of the widget in the figure. If not provided, the next empty column will be used.
|
496
500
|
config(dict): Additional configuration for the widget.
|
@@ -1139,17 +1143,6 @@ class BECImageShow(RPCBase):
|
|
1139
1143
|
lock(bool): True to lock, False to unlock.
|
1140
1144
|
"""
|
1141
1145
|
|
1142
|
-
@rpc_call
|
1143
|
-
def plot(self, data_x: "list | np.ndarray", data_y: "list | np.ndarray", **kwargs):
|
1144
|
-
"""
|
1145
|
-
Plot custom data on the plot widget. These data are not saved in config.
|
1146
|
-
|
1147
|
-
Args:
|
1148
|
-
data_x(list|np.ndarray): x-axis data
|
1149
|
-
data_y(list|np.ndarray): y-axis data
|
1150
|
-
**kwargs: Keyword arguments for the plot.
|
1151
|
-
"""
|
1152
|
-
|
1153
1146
|
@rpc_call
|
1154
1147
|
def remove(self):
|
1155
1148
|
"""
|
@@ -1868,43 +1861,66 @@ class Ring(RPCBase):
|
|
1868
1861
|
@rpc_call
|
1869
1862
|
def set_value(self, value: "int | float"):
|
1870
1863
|
"""
|
1871
|
-
|
1864
|
+
Set the value for the ring widget
|
1865
|
+
|
1866
|
+
Args:
|
1867
|
+
value(int | float): Value for the ring widget
|
1872
1868
|
"""
|
1873
1869
|
|
1874
1870
|
@rpc_call
|
1875
1871
|
def set_color(self, color: "str | tuple"):
|
1876
1872
|
"""
|
1877
|
-
|
1873
|
+
Set the color for the ring widget
|
1874
|
+
|
1875
|
+
Args:
|
1876
|
+
color(str | tuple): Color for the ring widget. Can be HEX code or tuple (R, G, B, A).
|
1878
1877
|
"""
|
1879
1878
|
|
1880
1879
|
@rpc_call
|
1881
1880
|
def set_background(self, color: "str | tuple"):
|
1882
1881
|
"""
|
1883
|
-
|
1882
|
+
Set the background color for the ring widget
|
1883
|
+
|
1884
|
+
Args:
|
1885
|
+
color(str | tuple): Background color for the ring widget. Can be HEX code or tuple (R, G, B, A).
|
1884
1886
|
"""
|
1885
1887
|
|
1886
1888
|
@rpc_call
|
1887
1889
|
def set_line_width(self, width: "int"):
|
1888
1890
|
"""
|
1889
|
-
|
1891
|
+
Set the line width for the ring widget
|
1892
|
+
|
1893
|
+
Args:
|
1894
|
+
width(int): Line width for the ring widget
|
1890
1895
|
"""
|
1891
1896
|
|
1892
1897
|
@rpc_call
|
1893
1898
|
def set_min_max_values(self, min_value: "int | float", max_value: "int | float"):
|
1894
1899
|
"""
|
1895
|
-
|
1900
|
+
Set the min and max values for the ring widget.
|
1901
|
+
|
1902
|
+
Args:
|
1903
|
+
min_value(int | float): Minimum value for the ring widget
|
1904
|
+
max_value(int | float): Maximum value for the ring widget
|
1896
1905
|
"""
|
1897
1906
|
|
1898
1907
|
@rpc_call
|
1899
1908
|
def set_start_angle(self, start_angle: "int"):
|
1900
1909
|
"""
|
1901
|
-
|
1910
|
+
Set the start angle for the ring widget
|
1911
|
+
|
1912
|
+
Args:
|
1913
|
+
start_angle(int): Start angle for the ring widget in degrees
|
1902
1914
|
"""
|
1903
1915
|
|
1904
1916
|
@rpc_call
|
1905
1917
|
def set_update(self, mode: "Literal['manual', 'scan', 'device']", device: "str" = None):
|
1906
1918
|
"""
|
1907
|
-
Set the update mode for the ring widget
|
1919
|
+
Set the update mode for the ring widget.
|
1920
|
+
Modes:
|
1921
|
+
- "manual": Manual update mode, the value is set by the user.
|
1922
|
+
- "scan": Update mode for the scan progress. The value is updated by the current scan progress.
|
1923
|
+
- "device": Update mode for the device readback. The value is updated by the device readback. Take into account that user has to set the device name and limits.
|
1908
1924
|
|
1909
1925
|
Args:
|
1910
1926
|
mode(str): Update mode for the ring widget. Can be "manual", "scan" or "device"
|
@@ -1914,5 +1930,5 @@ class Ring(RPCBase):
|
|
1914
1930
|
@rpc_call
|
1915
1931
|
def reset_connection(self):
|
1916
1932
|
"""
|
1917
|
-
|
1933
|
+
Reset the connections for the ring widget. Disconnect the current slot and endpoint.
|
1918
1934
|
"""
|
@@ -97,14 +97,16 @@ class JupyterConsoleWindow(QWidget): # pragma: no cover:
|
|
97
97
|
self.w3 = self.figure[1, 0]
|
98
98
|
|
99
99
|
# curves for w1
|
100
|
-
self.w1.
|
101
|
-
self.w1.
|
100
|
+
self.w1.plot(x_name="samx", y_name="samy", z_name="bpm4i")
|
101
|
+
self.w1.plot(x_name="samx", y_name="samy", z_name="bpm3a")
|
102
102
|
self.c1 = self.w1.get_config()
|
103
103
|
|
104
104
|
def _init_dock(self):
|
105
105
|
|
106
106
|
self.d0 = self.dock.add_dock(name="dock_0")
|
107
107
|
self.fig0 = self.d0.add_widget("BECFigure")
|
108
|
+
data = np.random.rand(10, 2)
|
109
|
+
self.fig0.plot(data, label="2d Data")
|
108
110
|
self.fig0.image("eiger", vrange=(0, 100))
|
109
111
|
|
110
112
|
self.d1 = self.dock.add_dock(name="dock_1", position="right")
|
@@ -114,7 +116,6 @@ class JupyterConsoleWindow(QWidget): # pragma: no cover:
|
|
114
116
|
|
115
117
|
self.d2 = self.dock.add_dock(name="dock_2", position="bottom")
|
116
118
|
self.fig2 = self.d2.add_widget("BECFigure", row=0, col=0)
|
117
|
-
self.fig2.motor_map(x_name="samx", y_name="samy")
|
118
119
|
self.fig2.plot(x_name="samx", y_name="bpm4i")
|
119
120
|
self.bar = self.d2.add_widget("SpiralProgressBar", row=0, col=1)
|
120
121
|
self.bar.set_diameter(200)
|