APS-2BM-MIC / ipython-user2bmb

ipython configurations for the tomography instrument
2 stars 5 forks source link

"event" document not found in broker #12

Closed prjemian closed 6 years ago

prjemian commented 6 years ago

Interestingly, the event document generated from the collect() of this new flyer is not found in the databroker when using db[-1]. Only start, descriptor, and stop documents are retrieved.

Some thing not right about how the SpinFlyer is setup? I believe it might come down to how the event dictionary is created.

prjemian commented 6 years ago

Execution of the plan:

In [1]: RE(myfly([spin_flyer]))
Transient Scan ID: 622     Time: 2018/02/12 08:56:24
Persistent Unique Scan ID: '486212b5-d3d4-4b2d-8e59-d4aab3922c43'
New stream: 'spin_flyer'                                                                                                
/home/mintadmin/Apps/BlueSky/lib/python3.6/site-packages/bluesky/callbacks/best_effort.py:243: UserWarning: Omitting simdet_hdf1_full_file_name from plot because dtype is string
  "".format(y_key, dtype))

exit status: success
# descriptor(s): 1
Out[1]: ('486212b5-d3d4-4b2d-8e59-d4aab3922c43',)
prjemian commented 6 years ago

Here is what the databroker tells me:

In [2]: h = db[-1]

In [3]: list(h.events())
Out[3]: []

In [4]: list(h.keys())
Out[4]: ['start', 'descriptors', 'stop']

In [5]: h.start
Out[5]: 
{'APS_BlueSky_tools_VERSION': '0.0.19+5.g943bbe1',
 'BLUESKY_VERSION': '1.0.0.post2+gf124cf7',
 'OPHYD_VERSION': '1.0.0',
 'beamline_id': 'developer',
 'login_id': 'mintadmin@mint-vm',
 'owner': 'Pete',
 'pid': 7605,
 'plan_name': 'myfly',
 'plan_type': 'generator',
 'proposal_id': None,
 'scan_id': 622,
 'time': 1518447384.5173883,
 'uid': '486212b5-d3d4-4b2d-8e59-d4aab3922c43'}
prjemian commented 6 years ago

Compare with

prjemian commented 6 years ago

not a problem