From ce42db08cefcde9f48ab838652d689ab73cf408d Mon Sep 17 00:00:00 2001 From: David Perl Date: Wed, 25 Nov 2026 15:38:37 +0100 Subject: [PATCH] feat: add support for aarebec --- pxi_bec/bec_widgets/widgets/__init__.py | 5 +++++ pxi_bec/device_configs/x06sa_device_config.yaml | 4 ++-- pxi_bec/devices/__init__.py | 6 ++++++ pyproject.toml | 5 ++++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pxi_bec/bec_widgets/widgets/__init__.py b/pxi_bec/bec_widgets/widgets/__init__.py index e69de29..562ce61 100644 --- a/pxi_bec/bec_widgets/widgets/__init__.py +++ b/pxi_bec/bec_widgets/widgets/__init__.py @@ -0,0 +1,5 @@ +from mx_bec.bec_widgets.widgets.aare_bec.actors_config import MxActorConfigWidget +from mx_bec.bec_widgets.widgets.aare_bec.task_panel import MxTaskPanel +from mx_bec.bec_widgets.widgets.aare_bec.task_queue import MxTaskQueueWidget + +__all__ = ["MxActorConfigWidget", "MxTaskPanel", "MxTaskQueueWidget"] diff --git a/pxi_bec/device_configs/x06sa_device_config.yaml b/pxi_bec/device_configs/x06sa_device_config.yaml index f4ff18c..3f7f3b4 100644 --- a/pxi_bec/device_configs/x06sa_device_config.yaml +++ b/pxi_bec/device_configs/x06sa_device_config.yaml @@ -27,7 +27,7 @@ base_config: # smargon: # description: REST-based device which connects to Smargopolo -# deviceClass: pxi_bec.devices.smargopolo_smargon.Smargon +# deviceClass: pxi_bec.devices.Smargon # deviceConfig: {prefix: 'http://x06sa-smargopolo.psi.ch:3000'} # onFailure: buffer # enabled: True @@ -40,7 +40,7 @@ base_config: # aerotech: # description: REST-based device which connects to AareScan and Aerotech -# deviceClass: pxii_bec.devices.aerotech.Aerotech +# deviceClass: pxi_bec.devices.Aerotech # deviceConfig: {prefix: 'http://mx-x06sa-queue-01:5234'} # onFailure: buffer # enabled: True diff --git a/pxi_bec/devices/__init__.py b/pxi_bec/devices/__init__.py index e69de29..95e8f8f 100644 --- a/pxi_bec/devices/__init__.py +++ b/pxi_bec/devices/__init__.py @@ -0,0 +1,6 @@ +from mx_bec.devices.aerotech import Aerotech +from mx_bec.devices.sim_sample_changer import SimSampleChanger +from mx_bec.devices.sim_stages import SimAerotechStage, SimGoniometer +from mx_bec.devices.smargopolo_smargon import Smargon + +__all__ = ["Aerotech", "SimAerotechStage", "SimGoniometer", "SimSampleChanger", "Smargon"] diff --git a/pyproject.toml b/pyproject.toml index 82a825c..7ae4ab3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", ] -dependencies = ["pandas~=2.0", "matplotlib"] +dependencies = ["mx_bec", "pandas~=2.0", "matplotlib"] [project.optional-dependencies] dev = [ @@ -58,6 +58,9 @@ plugin_widgets_update = "pxi_bec.bec_widgets.auto_updates" [project.entry-points."bec.widgets.user_widgets"] plugin_widgets = "pxi_bec.bec_widgets.widgets" +[project.entry-points."bec.messages"] +plugin_messages = "pxi_bec.messages" + [tool.hatch.build.targets.wheel] include = ["*"]