id4_common.plans.center_maximum#

Legacy cen2 / maxi2 / mini2 plans driven by bluesky.callbacks.best_effort.BestEffortCallback().peaks.

Kept as a fallback path for runs where the BestEffortCallback was running live. For everything else, prefer the new id4_common.plans.peak_position cen / com / maxi / mini plans, which compute peak statistics from the catalog and support 2-D grid_scan runs (issue #59).

Module Contents#

id4_common.plans.center_maximum.cen2(positioner=None, detector=None)#

Legacy: move motor to FWHM-midpoint of last scan via the BEC peaks.

Uses the position found by bluesky.callbacks.best_effort.BestEffortCallback().peaks. Prefer id4_common.plans.peak_position.cen() for new code.

Parameters:
  • positioner (ophyd instance, optional) – Device to be moved to center.

  • detector (str, optional) – Ophyd instance name of the detector used to center. This is only needed if the scan had more than one hinted detector.

id4_common.plans.center_maximum.maxi2(positioner=None, detector=None)#

Legacy: move motor to maximum of last scan via the BEC peaks.

Uses the position found by bluesky.callbacks.best_effort.BestEffortCallback().peaks. Prefer id4_common.plans.peak_position.maxi() for new code.

Parameters:
  • positioner (ophyd instance, optional) – Device to be moved to center.

  • detector (str, optional) – Ophyd instance name of the detector used to center. This is only needed if the scan had more than one hinted detector.

id4_common.plans.center_maximum.mini2(positioner=None, detector=None)#

Legacy: move motor to minimum of last scan via the BEC peaks.

Uses the position found by bluesky.callbacks.best_effort.BestEffortCallback().peaks. Prefer id4_common.plans.peak_position.mini() for new code.

Parameters:
  • positioner (ophyd instance, optional) – Device to be moved to center.

  • detector (str, optional) – Ophyd instance name of the detector used to center. This is only needed if the scan had more than one hinted detector.