{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/bluesky/issues/485","repository_url":"https://api.github.com/repos/NSLS-II/bluesky","labels_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/485/comments","events_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/485/events","html_url":"https://github.com/NSLS-II/bluesky/issues/485","id":159462163,"number":485,"title":"issue to retrive events/data from Xspress3","user":{"login":"imrealkaren","id":6539127,"avatar_url":"https://avatars.githubusercontent.com/u/6539127?v=3","gravatar_id":"","url":"https://api.github.com/users/imrealkaren","html_url":"https://github.com/imrealkaren","followers_url":"https://api.github.com/users/imrealkaren/followers","following_url":"https://api.github.com/users/imrealkaren/following{/other_user}","gists_url":"https://api.github.com/users/imrealkaren/gists{/gist_id}","starred_url":"https://api.github.com/users/imrealkaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imrealkaren/subscriptions","organizations_url":"https://api.github.com/users/imrealkaren/orgs","repos_url":"https://api.github.com/users/imrealkaren/repos","events_url":"https://api.github.com/users/imrealkaren/events{/privacy}","received_events_url":"https://api.github.com/users/imrealkaren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-09T17:18:09Z","updated_at":"2016-06-09T20:57:40Z","closed_at":null,"body":"```python\r\nBlueSky [12]: gs.RE(hf2dxrf(xstart=6.669,xstepsize=0.005,xnumstep=1,ystart=1.171,ystepsize=.005,ynumstep=1,acqtime=.3,numrois=1, i0map_show=False, itmap_show=False))\r\nxstop = 6.6739999999999995\r\nystop = 1.176\r\n+-----------+------------+------------+--------------------------+------------+--------------------------+--------------------+--------------------+------------------------------+\r\n|   seq_num |       time | hf_stage_x | hf_stage_x_user_setpoint | hf_stage_y | hf_stage_y_user_setpoint | current_preamp_ch0 | current_preamp_ch2 | xs_channel1_rois_roi01_value |\r\n+-----------+------------+------------+--------------------------+------------+--------------------------+--------------------+--------------------+------------------------------+\r\n|         1 | 13:16:47.7 |   6.669000 |                 6.669000 |   1.170990 |                 1.171000 |        0.000000001 |        0.000000120 |                       0.0000 |\r\n|         2 | 13:16:48.6 |   6.674000 |                 6.674000 |   1.171010 |                 1.171000 |        0.000000001 |        0.000000120 |                       0.0000 |\r\n|         3 | 13:16:52.0 |   6.674000 |                 6.674000 |   1.175910 |                 1.176000 |        0.000000001 |        0.000000120 |                       0.0000 |\r\n|         4 | 13:16:52.9 |   6.669000 |                 6.669000 |   1.175995 |                 1.176000 |        0.000000001 |        0.000000120 |                       0.0000 |\r\n+-----------+------------+------------+--------------------------+------------+--------------------------+--------------------+--------------------+------------------------------+\r\ngenerator outer_product_scan ['46b1de'] (scan num: 263)\r\nOut[12]: ['46b1de99-e0a4-4d48-8957-46e067a1de6f']\r\n\r\nBlueSky [13]: evs = list(get_events(db[-1], fill=True))\r\n---------------------------------------------------------------------------\r\nKeyError                                  Traceback (most recent call last)\r\n<ipython-input-13-95d5428c472d> in <module>()\r\n----> 1 evs = list(get_events(db[-1], fill=True))\r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/site-packages/databroker/broker.py in get_events(self, headers, fields, name, fill, handler_registry, handler_overrides, **kwargs)\r\n    316                          handler_overrides=handler_overrides,\r\n    317                          plugins=self.plugins, **kwargs)\r\n--> 318         for event in res:\r\n    319             yield event\r\n    320 \r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/site-packages/databroker/core.py in get_events(mds, fs, headers, fields, name, fill, handler_registry, handler_overrides, plugins, **kwargs)\r\n    197                     continue\r\n    198                 if fill:\r\n--> 199                     fill_event(fs, event, handler_registry, handler_overrides)\r\n    200                 yield event\r\n    201         # Now yield any events from plugins.\r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/site-packages/databroker/core.py in fill_event(fs, event, handler_registry, handler_overrides)\r\n     51             if data_key not in handler_overrides:\r\n     52                 with fs.handler_context(handler_registry) as _fs:\r\n---> 53                     event.data[data_key] = _fs.get_datum(value)\r\n     54             else:\r\n     55                 mock_registry = mock_registries[data_key]\r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/site-packages/filestore/fs.py in retrieve(self, eid)\r\n    143         return self._api.retrieve(self._datum_col, eid,\r\n    144                                   self._datum_cache, self.get_spec_handler,\r\n--> 145                                   logger)\r\n    146 \r\n    147     # back compat\r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/site-packages/filestore/core.py in retrieve(col, eid, datum_cache, get_spec_handler, logger)\r\n     57                         \"datum cache can hold.\")\r\n     58 \r\n---> 59     handler = get_spec_handler(datum['resource'])\r\n     60     return handler(**datum['datum_kwargs'])\r\n     61 \r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/site-packages/filestore/fs.py in get_spec_handler(self, resource)\r\n    262 \r\n    263         spec = resource['spec']\r\n--> 264         handler = self.handler_reg[spec]\r\n    265         if self.version == 0:\r\n    266             key = (str(resource['_id']), handler.__name__)\r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/collections/__init__.py in __getitem__(self, key)\r\n    803             except KeyError:\r\n    804                 pass\r\n--> 805         return self.__missing__(key)            # support subclasses that define __missing__\r\n    806 \r\n    807     def get(self, key, default=None):\r\n\r\n/home/xf05id1/conda_envs/collection/lib/python3.4/collections/__init__.py in __missing__(self, key)\r\n    795 \r\n    796     def __missing__(self, key):\r\n--> 797         raise KeyError(key)\r\n    798 \r\n    799     def __getitem__(self, key):\r\n\r\nKeyError: 'XSP3'\r\n\r\nBlueSky [14]: \r\n"},"comment":{"url":"https://api.github.com/repos/NSLS-II/bluesky/issues/comments/225024237","html_url":"https://github.com/NSLS-II/bluesky/issues/485#issuecomment-225024237","issue_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/485","id":225024237,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T20:57:39Z","updated_at":"2016-06-09T20:57:39Z","body":"Also, you have a funny file set up where the IOC writes to one drive and then it is mirrored to a second (which is what is eventually mounted under the path saved in filestore).  My guess is if you are trying this right after a scan has finished the file has not finished being copied over."}}
{"actor":{"display_login":"tacaswell"}}