From d8d02b7ba9265ea5f485f1b710481a602ea7adac Mon Sep 17 00:00:00 2001 From: Stanislaw Malinowski Date: Mon, 22 Jul 2024 10:42:18 +0100 Subject: [PATCH] partial plan@ --- pyproject.toml | 5 ++++- src/visr/plans/one_plan.py | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/visr/plans/one_plan.py diff --git a/pyproject.toml b/pyproject.toml index 7c6dcd1..ad67e47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,10 @@ classifiers = [ "Programming Language :: Python :: 3.11", ] description = "visible light experiments at the ViSR mini-beamline" -dependencies = [] # Add project dependencies here, e.g. ["click", "numpy"] +dependencies = [ + "dls_dodal @ git+https://github.com/DiamondLightSource/dodal.git@directory_provider", + "ophyd_async @ git+https://github.com/bluesky/ophyd-async", +] dynamic = ["version"] license.file = "LICENSE" readme = "README.md" diff --git a/src/visr/plans/one_plan.py b/src/visr/plans/one_plan.py new file mode 100644 index 0000000..a91c7ca --- /dev/null +++ b/src/visr/plans/one_plan.py @@ -0,0 +1,25 @@ +from functools import partial +from pathlib import Path +from typing import Any, Dict, Optional + +import bluesky.preprocessors as bpp +from bluesky.preprocessors import finalize_decorator +from dls_bluesky_core.core import MsgGenerator, inject +from dodal.devices.linkam3 import Linkam3 +from dodal.devices.tetramm import free_tetramm +from ophyd_async.core import ( + HardwareTriggeredFlyable, + SameTriggerDetectorGroupLogic, + StandardDetector, +) +from ophyd_async.panda import PandA + + +def one_plan() -> MsgGenerator: + """ + A plan that does one thing. + long description + """ + dets = [] + plan_args = [] + # yield from