ophyd
ophyd copied to clipboard
AreadDetector does not return to initial state after RE.abort()
AreaDetector for the instance of the FastCCD did not return to the Acquire signal being 1 (triggering). THis was the case before the scan and should be the case after. It is particularly important because it not triggering causes the temperature to change and could hinder a user's experinement .... esppecially in the case of a user not knowing this happens and concentrates on something other than starting a new scan.
I am willing to get more information on this during the shutdown. Please advise what logging you would like to see. I can devise a few different conditions to get to the root cause once I have what logging you want. i.e. is msg_hook
enough
In [318]: RE(rel_scan([fccd],pgm.energy,-5,15,41,md={'purpose':'Fe L3 multitarget standard'}))
Transient Scan ID: 120141 Time: 2019-06-28 11:23:20
Persistent Unique Scan ID: '34698ee5-6928-43a4-aa77-8b07e0a5f869'
New stream: 'baseline'
pgA 'deferred pause' has been requested. The RunEngine will pause at the next checkpoint. To pause immediately, hit Ctrl+C again in the next 10 seconds.00, 1.34/s]
Deferred pause acknowledged. Continuing to checkpoint.
Pausing...: 99%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 4.94/5.0 [00:04<00:00, 1.05/s]
---------------------------------------------------------------------------
RunEngineInterrupted Traceback (most recent call last)
~/Users/2019/2019_06_Nelson/timescan_night_27.py in <module>
----> 1 RE(rel_scan([fccd],pgm.energy,-5,15,41,md={'purpose':'Fe L3 multitarget standard'}))
/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/run_engine.py in __call__(self, *args, **metadata_kw)
757
758 if self._interrupted:
--> 759 raise RunEngineInterrupted(self.pause_msg) from None
760
761 return tuple(self._run_start_uids)
RunEngineInterrupted:
Your RunEngine is entering a paused state. These are your options for changing
the state of the RunEngine:
RE.resume() Resume the plan.
RE.abort() Perform cleanup, then kill plan. Mark exit_stats='aborted'.
RE.stop() Perform cleanup, then kill plan. Mark exit_status='success'.
RE.halt() Emergency Stop: Do not perform cleanup --- just stop.
pgm_energy [Complete.]
In [319]:
In [319]:
In [319]: RE.abort()
Aborting: running cleanup and marking exit_status as 'abort'...
[E 11:23:42.426 run_engine:1260] Run aborted
Traceback (most recent call last):
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/run_engine.py", line 1153, in _run
msg = self._plan_stack[-1].send(resp)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 1294, in __call__
return (yield from plan)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 1149, in baseline_wrapper
return (yield from plan_mutator(plan, insert_baseline))
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 169, in plan_mutator
raise ex
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 122, in plan_mutator
msg = plan_stack[-1].send(ret)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 790, in monitor_during_wrapper
return (yield from plan2)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 169, in plan_mutator
raise ex
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 122, in plan_mutator
msg = plan_stack[-1].send(ret)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 169, in plan_mutator
raise ex
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 122, in plan_mutator
msg = plan_stack[-1].send(ret)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 848, in fly_during_wrapper
return (yield from plan2)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 169, in plan_mutator
raise ex
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 122, in plan_mutator
msg = plan_stack[-1].send(ret)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 169, in plan_mutator
raise ex
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 122, in plan_mutator
msg = plan_stack[-1].send(ret)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/plans.py", line 1023, in rel_scan
return (yield from inner_rel_scan())
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/utils.py", line 1011, in dec_inner
return (yield from plan)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 1107, in reset_positions_wrapper
reset()))
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 500, in finalize_wrapper
ret = yield from plan
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 77, in plan_mutator
msg = plan_stack[-1].throw(exception)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/utils.py", line 1011, in dec_inner
return (yield from plan)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 1062, in relative_set_wrapper
return (yield from plan)
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 244, in msg_mutator
ret = yield msg
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 194, in plan_mutator
inner_ret = yield msg
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 194, in plan_mutator
inner_ret = yield msg
File "/opt/conda_envs/collection-2019-2.0-csx/lib/python3.6/site-packages/bluesky/preprocessors.py", line 194, in plan_mutator
inner_ret = yield msg
[Previous line repeated 2 more times]
bluesky.utils.RequestAbort
Out[319]: ['34698ee5-6928-43a4-aa77-8b07e0a5f869']
In [320]: