Skip to content

Commit

Permalink
remove and rename metadata fields that are set by underlying plan
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph authored Aug 16, 2023
1 parent 1dd6b0f commit e148840
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/blueapi/plans/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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.
Expand All @@ -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)
Expand Down

0 comments on commit e148840

Please sign in to comment.