Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Mar 7, 2019
1 parent c870fe2 commit dcd8500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstools/synApps_ophyd/sscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def reset(self):
self.desc.put(self.desc.pvname.split(".")[0])
self.npts.put(1000)
for part in (self.positioners, self.detectors, self.triggers):
for ch_name in part.read_attrs:
channel = part.__getattr__(ch_name)
for ch_name in part.component_names:
channel = getattr(part, ch_name)
channel.reset()
self.a1pv.put("")
self.acqm.put("NORMAL")
Expand Down

0 comments on commit dcd8500

Please sign in to comment.