Skip to content

Commit 85dc225

Browse files
committed
MNT #191 #192
1 parent 3a55ce0 commit 85dc225

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apstools/migration/spec2ophyd.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
CONFIG_FILE = 'config-8idi'
15-
KNOWN_DEVICES = "PSE_MAC_MOT VM_EPICS_M1 VM_EPICS_SC".split()
15+
KNOWN_DEVICES = "PSE_MAC_MOT VM_EPICS_M1 VM_EPICS_PV VM_EPICS_SC".split()
1616

1717

1818
class SpecDeviceBase(object):
@@ -97,6 +97,10 @@ def setDevice(self, devices):
9797
unit, chan = list(map(int, uc_str.split("/")))
9898
self.device = device_list[unit]
9999
self.pvname = "{}m{}".format(self.device.prefix, chan)
100+
elif self.cntrl.startswith("MAC_MOT"):
101+
pass # TODO:
102+
elif self.cntrl.startswith("NONE"):
103+
pass # TODO:
100104

101105

102106
class SpecCounter(ItemNameBase):
@@ -145,6 +149,10 @@ def setDevice(self, devices):
145149
self.device = device_list[self.unit]
146150
# scalers are goofy, SPEC uses 0-based numbering, scaler uses 1-based
147151
self.pvname = "{}.S{}".format(self.device.prefix, self.chan+1)
152+
elif self.cntrl.startswith("EPICS_PV"):
153+
pass # TODO:
154+
elif self.cntrl.startswith("NONE"):
155+
pass # TODO:
148156

149157

150158
class SpecConfig(object):

0 commit comments

Comments
 (0)