You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#from nslsii.devices import TwoButtonShutter #TODO why are we not suing the facility TwoButtonShutter?
The following error appeared:
KeyErrorTraceback (mostrecentcalllast)
~/science_comm/Comm_JPelliciari.pyin<module>---->1RE(test_stability_20191022())
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/run_engine.pyin__call__(self, *args, **metadata_kw)
751# it (unless it is a canceled error)752ifexcisnotNone:
-->753raiseexc754755ifself._interrupted:
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/run_engine.pyin_run(self)
1260self._reason=str(err)
1261self.log.exception("Run aborted")
->1262raiseerr1263finally:
1264# Some done_callbacks may still be alive in other threads./opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/run_engine.pyin_run(self)
1148else:
1149try:
->1150msg=self._plan_stack[-1].send(resp)
1151# We have exhausted the top generator1152exceptStopIteration:
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyin__call__(self, plan)
1292plan=monitor_during_wrapper(plan, self.monitors)
1293plan=baseline_wrapper(plan, self.baseline)
->1294return (yieldfromplan)
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinbaseline_wrapper(plan, devices, name)
1147return (yieldfromplan)
1148else:
->1149return (yieldfromplan_mutator(plan, insert_baseline))
11501151/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
167continue168else:
-->169raiseex170# if inserting / mutating, put new generator on the stack171# and replace the current msg with the first element from the/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
120ret=result_stack.pop()
121try:
-->122msg=plan_stack[-1].send(ret)
123exceptStopIterationase:
124# discard the exhausted generator/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinmonitor_during_wrapper(plan, signals)
788plan1=plan_mutator(plan, insert_after_open)
789plan2=plan_mutator(plan1, insert_before_close)
-->790return (yieldfromplan2)
791792/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
167continue168else:
-->169raiseex170# if inserting / mutating, put new generator on the stack171# and replace the current msg with the first element from the/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
120ret=result_stack.pop()
121try:
-->122msg=plan_stack[-1].send(ret)
123exceptStopIterationase:
124# discard the exhausted generator/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
167continue168else:
-->169raiseex170# if inserting / mutating, put new generator on the stack171# and replace the current msg with the first element from the/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
-->122msg=plan_stack[-1].send(ret)
123exceptStopIterationase:
124# discard the exhausted generator/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinfly_during_wrapper(plan, flyers)
846plan1=plan_mutator(plan, insert_after_open)
847plan2=plan_mutator(plan1, insert_before_close)
-->848return (yieldfromplan2)
849850/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
167continue168else:
-->169raiseex170# if inserting / mutating, put new generator on the stack171# and replace the current msg with the first element from the/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
120ret=result_stack.pop()
121try:
-->122msg=plan_stack[-1].send(ret)
123exceptStopIterationase:
124# discard the exhausted generator/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
167continue168else:
-->169raiseex170# if inserting / mutating, put new generator on the stack171# and replace the current msg with the first element from the/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
120ret=result_stack.pop()
121try:
-->122msg=plan_stack[-1].send(ret)
123exceptStopIterationase:
124# discard the exhausted generator~/science_comm/Comm_JPelliciari.pyintest_stability_20191022()
6en=931.67sec_x_pt=0.5---->8yieldfromrixs_one_energy_1(sec_x_pt,total_time,cyc,en,ext_vg, 'test')
910~/science_comm/Comm_JPelliciari.pyinrixs_one_energy_1(split_time, total_exp, cycles, energy, ext_vg, reason, disable_sclr_plt)
51yieldfrommv(sclr.preset_time, split_time)
52yieldfrommv(pgm.en,energy)
--->53yieldfrommv(gvbt1,'open')
54yieldfromsleep(5)
55pts=int(total_exp/split_time)
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/plan_stubs.pyinmv(*args)
243step, =utils.merge_cycler(cyl)
244forobj, valinstep.items():
-->245ret=yieldMsg('set', obj, val, group=group)
246status_objects.append(ret)
247yieldMsg('wait', None, group=group)
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
192try:
193# yield out the 'current message' and collect the return-->194inner_ret=yieldmsg195exceptGeneratorExit:
196# special case GeneratorExit. We must clean up all of our plans/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
192try:
193# yield out the 'current message' and collect the return-->194inner_ret=yieldmsg195exceptGeneratorExit:
196# special case GeneratorExit. We must clean up all of our plans/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
192try:
193# yield out the 'current message' and collect the return-->194inner_ret=yieldmsg195exceptGeneratorExit:
196# special case GeneratorExit. We must clean up all of our plans/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
192try:
193# yield out the 'current message' and collect the return-->194inner_ret=yieldmsg195exceptGeneratorExit:
196# special case GeneratorExit. We must clean up all of our plans/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/preprocessors.pyinplan_mutator(plan, msg_proc)
192try:
193# yield out the 'current message' and collect the return-->194inner_ret=yieldmsg195exceptGeneratorExit:
196# special case GeneratorExit. We must clean up all of our plans/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/run_engine.pyin_run(self)
1206# exceptions (coming in via throw) can be1207# raised->1208new_response=yieldfromcoro(msg)
12091210# special case `CancelledError` and let the outer/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/asyncio/coroutines.pyincoro(*args, **kw)
118 @functools.wraps(func)
119defcoro(*args, **kw):
-->120res=func(*args, **kw)
121if (base_futures.isfuture(res) orinspect.isgenerator(res) or122isinstance(res, CoroWrapper)):
/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/bluesky/run_engine.pyin_set(self, msg)
1953group=kwargs.pop('group', None)
1954self._movable_objs_touched.add(msg.obj)
->1955ret=msg.obj.set(*msg.args, **kwargs)
1956p_event=asyncio.Event(loop=self.loop)
1957pardon_failures=self._pardon_failures/opt/conda_envs/collection-2019-3.0-six/lib/python3.7/site-packages/nslsii/devices.pyinset(self, val)
35self.close_str: self.close_val}
36--->37cmd_sig=cmd_map[val]
38target_val=target_map[val]
39KeyError: 'open'In [10]:
The text was updated successfully, but these errors were encountered:
Test performed by @mrakitin after noticing the following comment:
profile_collection/startup/15-valves_and_shutters.py
Line 4 in b617a59
The following error appeared:
The text was updated successfully, but these errors were encountered: