bec-widgets 0.57.3__tar.gz → 0.57.5__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.3 → bec_widgets-0.57.5}/CHANGELOG.md +26 -28
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/PKG-INFO +1 -1
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/client.py +72 -79
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/jupyter_console/jupyter_console_window.py +4 -3
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/dock/dock.py +3 -2
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/dock/dock_area.py +2 -2
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/figure.py +170 -116
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/image/image.py +0 -1
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/plot_base.py +0 -14
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/waveform/waveform.py +79 -29
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/bec_figure.md +2 -2
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/pyproject.toml +1 -1
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/end-2-end/test_bec_figure_rpc_e2e.py +2 -2
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/end-2-end/test_rpc_register_e2e.py +1 -1
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.git_hooks/pre-commit +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.gitignore +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.gitlab/issue_templates/bug_report_template.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.gitlab/issue_templates/documentation_update_template.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.gitlab/issue_templates/feature_request_template.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.gitlab/merge_request_templates/default.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.gitlab-ci.yml +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.pylintrc +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/.readthedocs.yaml +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/LICENSE +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/README.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/assets/bec_widgets_icon.png +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/assets/terminal_icon.png +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/auto_updates.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/client_utils.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/generate_cli.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/rpc_register.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/rpc_wigdet_handler.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/cli/server.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/jupyter_console/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/jupyter_console/jupyter_console_window.ui +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/motor_movement/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/motor_movement/motor_control_compilations.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/examples/motor_movement/motor_controller.ui +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/bec_connector.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/bec_dispatcher.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/bec_table.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/colors.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/container_utils.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/crosshair.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/entry_validator.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/layout_manager.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/plugin_utils.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/rpc_decorator.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/thread_checker.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/ui_loader.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/validator_delegate.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/widget_io.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/utils/yaml_dialog.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/dock/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/image/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/image/image_item.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/image/image_processor.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/motor_map/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/motor_map/motor_map.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/waveform/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/figure/plots/waveform/waveform_curve.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/jupyter_console/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/jupyter_console/jupyter_console.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/motor_control.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/motor_table/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/motor_table/motor_table.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/motor_table/motor_table.ui +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/movement_absolute/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/movement_absolute/movement_absolute.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/movement_absolute/movement_absolute.ui +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/movement_relative/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/movement_relative/movement_relative.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/movement_relative/movement_relative.ui +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/selection/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/selection/selection.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/motor_control/selection/selection.ui +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/scan_control/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/scan_control/scan_control.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/spiral_progress_bar/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/spiral_progress_bar/ring.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/spiral_progress_bar/spiral_progress_bar.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/toolbar/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/bec_widgets/widgets/toolbar/toolbar.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/Makefile +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/_static/custom.css +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/_templates/custom-class-template.rst +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/_templates/custom-module-template.rst +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/api_reference/api_reference.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/apps_48dp.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/display_settings_48dp.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/index_api.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/index_contribute.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/index_getting_started.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/index_user_guide.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/assets/rocket_launch_48dp.svg +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/conf.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/developer/developer.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/index.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/introduction/introduction.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/make.bat +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/requirements.txt +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/api_reference/api_reference.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/applications/applications.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/customisation.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/getting_started/auto_updates.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/getting_started/getting_started.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/getting_started/gui_complex_gui.gif +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/getting_started/installation.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/getting_started/quick_start.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/user.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/image_plot.gif +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/motor.gif +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/progress_bar.gif +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/scatter_2D.gif +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/spiral_progress_bar.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/w1D.gif +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/docs/user/widgets/widgets.md +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/end-2-end/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/end-2-end/conftest.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/end-2-end/test_bec_dock_rpc_e2e.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/client_mocks.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/conftest.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_bec_connector.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_bec_dispatcher.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_bec_dock.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_bec_figure.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_bec_motor_map.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_client_utils.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_configs/config_device.yaml +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_configs/config_device_no_entry.yaml +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_configs/config_scan.yaml +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_crosshair.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_generate_cli_client.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_motor_control.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_msgs/__init__.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_msgs/available_scans_message.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_plot_base.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_rpc_register.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_scan_control.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_spiral_progress_bar.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_waveform1d.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_widget_io.py +0 -0
- {bec_widgets-0.57.3 → bec_widgets-0.57.5}/tests/unit_tests/test_yaml_dialog.py +0 -0
@@ -2,6 +2,32 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## v0.57.5 (2024-06-06)
|
6
|
+
|
7
|
+
### Documentation
|
8
|
+
|
9
|
+
* docs(figure): docs adjusted to be compatible with new signature ([`c037b87`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/c037b87675af91b26e8c7c60e76622d4ed4cf5d5))
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* fix(waveform): added .plot method with the same signature as BECFigure.plot ([`8479caf`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/8479caf53a7325788ca264e5bd9aee01f1d4c5a0))
|
14
|
+
|
15
|
+
* 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))
|
16
|
+
|
17
|
+
### Refactor
|
18
|
+
|
19
|
+
* 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))
|
20
|
+
|
21
|
+
|
22
|
+
## v0.57.4 (2024-06-06)
|
23
|
+
|
24
|
+
### Fix
|
25
|
+
|
26
|
+
* fix(docks): set_title do update dock internal _name now ([`15cbc21`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/15cbc21e5bb3cf85f5822d44a2b3665b5aa2f346))
|
27
|
+
|
28
|
+
* fix(docks): docks widget_list adn dockarea panels return values fixed ([`ffae5ee`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/ffae5ee54e6b43da660131092452adff195ba4fb))
|
29
|
+
|
30
|
+
|
5
31
|
## v0.57.3 (2024-06-06)
|
6
32
|
|
7
33
|
### Documentation
|
@@ -131,31 +157,3 @@
|
|
131
157
|
|
132
158
|
|
133
159
|
## v0.55.0 (2024-05-24)
|
134
|
-
|
135
|
-
### Feature
|
136
|
-
|
137
|
-
* feat(widgets/progressbar): SpiralProgressBar added with rpc interface ([`76bd0d3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/76bd0d339ac9ae9e8a3baa0d0d4e951ec1d09670))
|
138
|
-
|
139
|
-
|
140
|
-
## v0.54.0 (2024-05-24)
|
141
|
-
|
142
|
-
### Build
|
143
|
-
|
144
|
-
* build: added pyqt6 as sphinx build dependency ([`a47a8ec`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/a47a8ec413934cf7fce8d5b7a5913371d4b3b4a5))
|
145
|
-
|
146
|
-
### Feature
|
147
|
-
|
148
|
-
* feat(figure): changes to support direct plot functionality ([`fc4d0f3`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/fc4d0f3bb2a7c2fca9c326d86eb68b305bcd548b))
|
149
|
-
|
150
|
-
### Refactor
|
151
|
-
|
152
|
-
* refactor(reconstruction): repository structure is changed to separate assets needed for each widget ([`3455c60`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/3455c602361d3b5cc3ff9190f9d2870474becf8a))
|
153
|
-
|
154
|
-
* refactor(clean-up): 1st generation widgets are removed ([`edc25fb`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/edc25fbf9d5a0321e5f0a80b492b6337df807849))
|
155
|
-
|
156
|
-
|
157
|
-
## v0.53.3 (2024-05-16)
|
158
|
-
|
159
|
-
### Fix
|
160
|
-
|
161
|
-
* fix: removed apparently unnecessary sleep while waiting for an rpc response ([`7d64cac`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/7d64cac6610b39d3553ff650354f78ead8ee6b55))
|
@@ -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
|
"""
|
@@ -1429,7 +1422,7 @@ class BECDock(RPCBase):
|
|
1429
1422
|
|
1430
1423
|
@property
|
1431
1424
|
@rpc_call
|
1432
|
-
def widget_list(self) -> "list":
|
1425
|
+
def widget_list(self) -> "list[BECConnector]":
|
1433
1426
|
"""
|
1434
1427
|
Get the widgets in the dock.
|
1435
1428
|
|
@@ -1550,7 +1543,7 @@ class BECDockArea(RPCBase, BECGuiClientMixin):
|
|
1550
1543
|
|
1551
1544
|
@property
|
1552
1545
|
@rpc_call
|
1553
|
-
def panels(self) -> "dict":
|
1546
|
+
def panels(self) -> "dict[str, BECDock]":
|
1554
1547
|
"""
|
1555
1548
|
Get the docks in the dock area.
|
1556
1549
|
Returns:
|
@@ -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)
|
@@ -93,7 +93,7 @@ class BECDock(BECConnector, Dock):
|
|
93
93
|
super().float()
|
94
94
|
|
95
95
|
@property
|
96
|
-
def widget_list(self) -> list:
|
96
|
+
def widget_list(self) -> list[BECConnector]:
|
97
97
|
"""
|
98
98
|
Get the widgets in the dock.
|
99
99
|
|
@@ -103,7 +103,7 @@ class BECDock(BECConnector, Dock):
|
|
103
103
|
return self.widgets
|
104
104
|
|
105
105
|
@widget_list.setter
|
106
|
-
def widget_list(self, value: list):
|
106
|
+
def widget_list(self, value: list[BECConnector]):
|
107
107
|
self.widgets = value
|
108
108
|
|
109
109
|
def hide_title_bar(self):
|
@@ -131,6 +131,7 @@ class BECDock(BECConnector, Dock):
|
|
131
131
|
"""
|
132
132
|
self.parent_dock_area.docks[title] = self.parent_dock_area.docks.pop(self.name())
|
133
133
|
self.setTitle(title)
|
134
|
+
self._name = title
|
134
135
|
|
135
136
|
def get_widgets_positions(self) -> dict:
|
136
137
|
"""
|
@@ -61,7 +61,7 @@ class BECDockArea(BECConnector, DockArea):
|
|
61
61
|
painter.drawText(self.rect(), Qt.AlignCenter, "Add docks using 'add_dock' method")
|
62
62
|
|
63
63
|
@property
|
64
|
-
def panels(self) -> dict:
|
64
|
+
def panels(self) -> dict[str, BECDock]:
|
65
65
|
"""
|
66
66
|
Get the docks in the dock area.
|
67
67
|
Returns:
|
@@ -70,7 +70,7 @@ class BECDockArea(BECConnector, DockArea):
|
|
70
70
|
return dict(self.docks)
|
71
71
|
|
72
72
|
@panels.setter
|
73
|
-
def panels(self, value: dict):
|
73
|
+
def panels(self, value: dict[str, BECDock]):
|
74
74
|
self.docks = WeakValueDictionary(value)
|
75
75
|
|
76
76
|
@property
|