Skip to content

Commit a46d0c5

Browse files
committed
DOC
1 parent f78003f commit a46d0c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apstools/migration/spec2ophyd.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
KNOWN_DEVICES = "PSE_MAC_MOT VM_EPICS_M1 VM_EPICS_PV VM_EPICS_SC".split()
1616

1717

18-
class SpecDeviceBase(object):
18+
class SpecDevice(object):
1919
"""
2020
SPEC configuration of a device, such as a multi-channel motor controller
21+
22+
SPEC "devices" are components which counters or motors to controllers
2123
"""
2224

2325
def __init__(self, config_text):
@@ -153,6 +155,9 @@ def ophyd_config(self):
153155
class SpecCounter(ItemNameBase):
154156
"""
155157
SPEC configuration of a counter channel
158+
159+
In SPEC's config file, a single PV signal is described as a counter,
160+
attached to an EPICS_PV (as described by a VM_EPICS_PV device).
156161
"""
157162

158163
def __init__(self, config_text):
@@ -237,7 +242,7 @@ def read_config(self, config_file=None):
237242

238243
word0 = line.split(sep="=", maxsplit=1)[0].strip()
239244
if word0 in KNOWN_DEVICES:
240-
device = SpecDeviceBase(line)
245+
device = SpecDevice(line)
241246
if device.name not in self.devices:
242247
self.devices[device.name] = []
243248
# 0-based numbering

0 commit comments

Comments
 (0)