Source code for apstools.devices.tracking_signal

"""
Tracking Signal for Device coordination
+++++++++++++++++++++++++++++++++++++++

.. autosummary::

   ~TrackingSignal
"""

from ophyd import Signal


[docs]class TrackingSignal(Signal): """ Non-EPICS signal for use when coordinating Device actions. .. index:: Ophyd Signal; TrackingSignal Signal to decide if undulator will be tracked while changing the monochromator energy. """
[docs] def check_value(self, value): """ Check if the value is a boolean. RAISES ValueError """ if not isinstance(value, bool): raise ValueError("tracking is boolean, it can only be True or False.")
# ----------------------------------------------------------------------------- # :author: Pete R. Jemian # :email: jemian@anl.gov # :copyright: (c) 2017-2022, UChicago Argonne, LLC # # Distributed under the terms of the Creative Commons Attribution 4.0 International Public License. # # The full license is in the file LICENSE.txt, distributed with this software. # -----------------------------------------------------------------------------