Skip to content

Commit

Permalink
fixes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian authored May 15, 2019
1 parent ea38faf commit 771a201
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apstools/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def report(self, title=None):
t.addLabel("result")
for key in keys:
v = getattr(self, key).value
t.addRow((key, v))
t.addRow((key, str(v)))
if title is not None:
print(title)
print(t)
Expand Down Expand Up @@ -628,8 +628,6 @@ def _scan(md=None):
v = np.array(v)
getattr(results, key).put(v)

results.report(stream_name)

if results.tune_ok.value:
yield from bps.create(name=stream_name)
try:
Expand All @@ -644,6 +642,8 @@ def _scan(md=None):
yield from bps.mv(self.axis, final_position)
self.stats.append(self.peaks)
yield from bps.close_run()

results.report(stream_name)

return (yield from _scan(md=_md))

Expand Down

0 comments on commit 771a201

Please sign in to comment.