Skip to content

Commit

Permalink
MNT #190 remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 20, 2019
1 parent 799a662 commit f78003f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apstools/migration/spec2ophyd.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@ class SpecConfig(object):
def __init__(self, config_file):
self.config_file = config_file or CONFIG_FILE
self.devices = OrderedDict()
self.motors = OrderedDict()
self.counters = OrderedDict()
self.signals = OrderedDict()
self.scalers = []
self.collection = []
self.unhandled = []
Expand Down Expand Up @@ -254,7 +251,6 @@ def read_config(self, config_file=None):
counter.setDevice(self.devices)
if counter.ctrl == "EPICS_PV":
signal = SpecSignal(counter.mne, counter.name, counter.pvname)
self.signals[signal.mne] = signal
self.collection.append(signal)
else:
if counter.pvname is not None:
Expand All @@ -266,12 +262,10 @@ def read_config(self, config_file=None):
self.scalers.append(pvname)
self.collection.append(scaler)

self.counters[counter.mne] = counter
self.collection.append(counter)
elif re.match("MOT\d*", line) is not None:
motor = SpecMotor(line)
motor.setDevice(self.devices)
self.motors[motor.mne] = motor
self.collection.append(motor)
else:
self.unhandled.append(line)
Expand Down

0 comments on commit f78003f

Please sign in to comment.