From e14884044ababe274f9026022a10a5eb13db81cf Mon Sep 17 00:00:00 2001 From: DiamondJoseph <53935796+DiamondJoseph@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:29:00 +0100 Subject: [PATCH] remove and rename metadata fields that are set by underlying plan --- src/blueapi/plans/plans.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/blueapi/plans/plans.py b/src/blueapi/plans/plans.py index 6e3c32524..a4030ba87 100644 --- a/src/blueapi/plans/plans.py +++ b/src/blueapi/plans/plans.py @@ -14,7 +14,7 @@ def scan( detectors: List[Readable], axes_to_move: Mapping[str, Movable], spec: Spec[str], - metadata: Optional[Mapping[str, Any]] = None, + md: Optional[Mapping[str, Any]] = None, ) -> MsgGenerator: """ Scan wrapping `bp.scan_nd` @@ -25,7 +25,7 @@ def scan( axes_to_move: All axes involved in this scan, names and objects spec: ScanSpec modelling the path of the scan - metadata: Key-value metadata to include + md: Key-value metadata to include in exported data, defaults to None. @@ -37,10 +37,9 @@ def scan( """ metadata = { - "detectors": [detector.name for detector in detectors], "scanspec": repr(spec), "shape": spec.shape(), - **(metadata or {}), + **(md or {}), } cycler = _scanspec_to_cycler(spec, axes_to_move)