Skip to content

Instantly share code, notes, and snippets.

@stashlukj
Last active June 12, 2020 19:56
Show Gist options
  • Save stashlukj/f9edf13b0c665f2225b22e2a6fe819a4 to your computer and use it in GitHub Desktop.
Save stashlukj/f9edf13b0c665f2225b22e2a6fe819a4 to your computer and use it in GitHub Desktop.
be(): {'R4:PAVE_POROSITY:128_accel_x': {'source': 'SIM:R4:PAVE_POROSITY:128_accel_x', 'dtype': 'integer', 'shape': []}}
read(): {'R4:PAVE_POROSITY:128_accel_x': {'value': 0, 'timestamp': 1591991471.709325}}
+-----------+------------+------------------------------+
| seq_num | time | R4:PAVE_POROSITY:128_accel_x |
+-----------+------------+------------------------------+
failed to format row
+-----------+------------+------------------------------+
generator count ['c602f216'] (scan num: 1)
Traceback (most recent call last):
File "manifold.py", line 386, in <module>
uid, = RE(
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 795, in __call__
self._resume_task(init_func=_build_task)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 919, in _resume_task
raise exc
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 1488, in _run
raise err
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 1353, in _run
msg = self._plan_stack[-1].send(resp)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plans.py", line 77, in count
return (yield from inner_count())
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/utils.py", line 1046, in dec_inner [0/797]
return (yield from plan)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/preprocessors.py", line 325, in run_wrapper
yield from contingency_wrapper(plan,
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/preprocessors.py", line 575, in contingency_wrapper
ret = yield from plan
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plans.py", line 74, in inner_count
return (yield from bps.repeat(partial(per_shot, detectors),
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plan_stubs.py", line 1185, in repeat
return (yield from repeated_plan())
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plan_stubs.py", line 1168, in repeated_plan
yield from ensure_generator(plan())
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plan_stubs.py", line 1028, in one_shot
yield from take_reading(list(detectors))
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plan_stubs.py", line 913, in trigger_and_read
return (yield from rewindable_wrapper(inner_trigger_and_read(),
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/preprocessors.py", line 693, in rewindable_wrapper
return (yield from plan)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plan_stubs.py", line 910, in inner_trigger_and_read
yield from save()
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/plan_stubs.py", line 62, in save
return (yield Msg('save'))
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 1413, in _run
new_response = await coro(msg)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 1736, in _save
await current_run.save(msg)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/bundlers.py", line 453, in save
await self.emit(DocumentNames.event, doc)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 2260, in emit
self.emit_sync(name, doc)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 2257, in emit_sync
self.dispatcher.process(name, doc)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/run_engine.py", line 2280, in process
exceptions = self.cb_registry.process(name, name.name, doc)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/utils.py", line 352, in process
func(*args, **kwargs)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/utils.py", line 433, in __call__
return mtd(*args, **kwargs)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/callbacks/core.py", line 56, in inner
return func(*args, **kwargs)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/event_model/__init__.py", line 76, in __call__
return self._dispatch(name, doc, validate)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/event_model/__init__.py", line 84, in _dispatch
output_doc = getattr(self, name)(doc)
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/callbacks/core.py", line 405, in event
raise ex
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/callbacks/core.py", line 389, in event
cols = [f.format(**{k: data[k]})
File "/mnt/c/software/gitlab/GeophysicalSurvey/radar4_rev2/anelli/py/.tox/bluesky/lib/python3.8/site-packages/bluesky/callbacks/core.py", line 389, in <listcomp>
cols = [f.format(**{k: data[k]})
KeyError: 'R4'
describe(): {'R4:PAVE_POROSITY:128_accel_x': {'source': 'SIM:R4:PAVE_POROSITY:128_accel_x', 'dtype': 'integer', 'shape': []}}
read(): {'R4:PAVE_POROSITY:128_accel_x': {'value': 0, 'timestamp': 1591990751.727023}}
+-----------+------------+------------------------------+
| seq_num | time | R4:PAVE_POROSITY:128_accel_x |
+-----------+------------+------------------------------+
failed to format row
failed to format row
failed to format row
failed to format row
failed to format row
failed to format row
failed to format row
failed to format row
failed to format row
failed to format row
+-----------+------------+------------------------------+
generator count ['27ef10e7'] (scan num: 1)
time R4:PAVE_POROSITY:128_accel_x
seq_num
1 2020-06-12 19:39:14.229344606 0
2 2020-06-12 19:39:14.248977661 -304
3 2020-06-12 19:39:14.259239912 -304
4 2020-06-12 19:39:14.269774675 -304
5 2020-06-12 19:39:14.282038212 -304
6 2020-06-12 19:39:14.297904491 -304
7 2020-06-12 19:39:14.299406767 -304
8 2020-06-12 19:39:14.308643341 -304
9 2020-06-12 19:39:14.317807913 -304
10 2020-06-12 19:39:14.319409609 -304
describe(): {'R4:PAVE_POROSITY:128_accel_x': {'source': 'SIM:R4:PAVE_POROSITY:128_accel_x', 'dtype': 'integer', 'shape': []}}
read(): {'R4:PAVE_POROSITY:128_accel_x': {'value': -304, 'timestamp': 1591990754.4929419}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment