Skip to content

Commit

Permalink
MNT #975 2M undulator
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 8, 2024
1 parent 5e405e7 commit d1b264a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apstools/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
from .aps_machine import ApsMachineParametersDevice

from .aps_undulator import PlanarUndulator
from .aps_undulator import Revolver_Undulator
from .aps_undulator import STI_Undulator
from .aps_undulator import Undulator2M

from .area_detector_support import AD_EpicsFileNameMixin
from .area_detector_support import AD_FrameType_schemes
Expand Down
27 changes: 26 additions & 1 deletion apstools/devices/aps_undulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
~PlanarUndulator
~Revolver_Undulator
~STI_Undulator
~Undulator2M
"""

import logging
Expand Down Expand Up @@ -166,7 +167,7 @@ class Revolver_Undulator(ID_Spectrum_Mixin, ID_Controls_Mixin, ID_Misc_Mixin, De
class STI_Undulator(PlanarUndulator):
"""APS Planar Undulator built by STI Optronics.
.. index::
.. index::
Ophyd Device; PlanarUndulator
Ophyd Device; STI_Undulator
Expand All @@ -178,6 +179,30 @@ class STI_Undulator(PlanarUndulator):
"""


class Undulator2M(ID_Spectrum_Mixin, ID_Controls_Mixin, ID_Misc_Mixin, Device):
"""APS 2M Undulator.
.. index::
Ophyd Device; PlanarUndulator
Ophyd Device; Undulator2M
APS Use: 1ID, downstream.
EXAMPLE::
undulator = Undulator2M("S01ID:DSID:", name="undulator")
"""

# PVs not found
busy = None
magnet = None
version_plc = None
version_hpmu = None

done = Component(EpicsSignalRO, "BusyM.VAL", kind="omitted")
done_value = 0


# -----------------------------------------------------------------------------
# :author: Pete R. Jemian
# :email: [email protected]
Expand Down

0 comments on commit d1b264a

Please sign in to comment.