sm_bluesky.electron_analyser.plan_stubs.analyser_per_step#
Members
|
|
Create a custom per-shot callback for acquisitions involving an electron analyser. |
|
Create a custom per-step callback for scans involving an electron analyser. |
- sm_bluesky.electron_analyser.plan_stubs.analyser_per_step.make_analyser_per_shot(analyser: ElectronAnalyserDetector, sequence: BaseSequence, detectors: Sequence[Readable], close_shutter_per_region: bool, shutter: GenericFastShutter | None) Callable[[Sequence[Readable], Callable[[Sequence[Readable]], Generator[Msg, Any, Mapping[str, Reading]]] | None], Generator[Msg, Any, P]][source]#
Create a custom per-shot callback for acquisitions involving an electron analyser.
The callback iterates over each enabled analyser region, configuring the analyser and optionally opening and closing a shutter for each region before triggering and reading the detectors.
- Parameters:
analyser – Electron analyser to configure for each region and measure with.
sequence – Sequence containing the analyser regions to collect.
close_shutter_per_region – Whether to close the shutter after collecting each region.
shutter – Optional shutter to open before collecting each region.
- sm_bluesky.electron_analyser.plan_stubs.analyser_per_step.make_analyser_per_step(analyser: ElectronAnalyserDetector, sequence: BaseSequence, detectors: Sequence[Readable], close_shutter_per_region: bool, shutter: GenericFastShutter | None) Callable[[Sequence[Readable], Mapping[Movable, Any], dict[Movable, Any], Callable[[Sequence[Readable]], Generator[Msg, Any, Mapping[str, Reading]]] | None], Generator[Msg, Any, P]][source]#
Create a custom per-step callback for scans involving an electron analyser.
The callback moves the scan motors, then iterates over each enabled analyser region, configuring the analyser and optionally opening and closing a shutter for each region before triggering and reading the detectors and scan motors.
- Parameters:
analyser – Electron analyser to configure for each region and measure with.
sequence – Sequence containing the analyser regions to collect.
close_shutter_per_region – Whether to close the shutter after collecting each region.
shutter – Optional shutter to open before collecting each region.