Skip to content

Commit

Permalink
DOC #254
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Nov 22, 2019
1 parent 8f1484b commit 687d5c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apstools/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. autosummary::
~ApsCycleComputed
~ApsCycleComputedRO
~ApsMachineParametersDevice
~ApsPssShutter
~ApsPssShutterWithStatus
Expand Down Expand Up @@ -176,13 +176,15 @@ def use_EPICS_scaler_channels(scaler):
scaler.channels.configuration_attrs = configuration_attrs


class ApsCycleComputed(SignalRO):
class ApsCycleComputedRO(SignalRO):
"""
compute the APS cycle name based on the calendar and the usual practice
Absent any facility PV that provides the name of the current operating
cycle, this can be approximated by python computation (as long as the
present scheduling pattern is maintained)
This signal is read-only.
"""

def get(self):
Expand Down Expand Up @@ -235,7 +237,7 @@ class ApsMachineParametersDevice(Device):
"""
current = Component(EpicsSignalRO, "S:SRcurrentAI")
lifetime = Component(EpicsSignalRO, "S:SRlifeTimeHrsCC")
aps_cycle = Component(ApsCycleComputed)
aps_cycle = Component(ApsCycleComputedRO)
machine_status = Component(EpicsSignalRO, "S:DesiredMode", string=True)
# In [3]: APS.machine_status.enum_strs
# Out[3]:
Expand Down

0 comments on commit 687d5c7

Please sign in to comment.