{"action":"opened","issue":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/191","repository_url":"https://api.github.com/repos/NSLS-II/Bug-Reports","labels_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/191/comments","events_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/191/events","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/191","id":309577994,"number":191,"title":"CSX: error with accessing collected data from Xspress3","user":{"login":"cmazzoli","id":11068694,"avatar_url":"https://avatars2.githubusercontent.com/u/11068694?v=4","gravatar_id":"","url":"https://api.github.com/users/cmazzoli","html_url":"https://github.com/cmazzoli","followers_url":"https://api.github.com/users/cmazzoli/followers","following_url":"https://api.github.com/users/cmazzoli/following{/other_user}","gists_url":"https://api.github.com/users/cmazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/cmazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmazzoli/subscriptions","organizations_url":"https://api.github.com/users/cmazzoli/orgs","repos_url":"https://api.github.com/users/cmazzoli/repos","events_url":"https://api.github.com/users/cmazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/cmazzoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-29T00:25:40Z","updated_at":"2018-03-29T00:25:40Z","closed_at":null,"author_association":"NONE","body":"```python\r\nIn [16]: list(db['21a1f62d-7dd0-4856-873f-122b0f27c0f5'].data('xsp3_settings_ch1'))\r\n---------------------------------------------------------------------------\r\nIndexError                                Traceback (most recent call last)\r\n~/Beamline/ScienceComm/2018_03_ZP/startup.py in <module>()\r\n----> 1 list(db['21a1f62d-7dd0-4856-873f-122b0f27c0f5'].data('xsp3_settings_ch1'))\r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/_core.py in data(self, field, stream_name, fill)\r\n    475         for event in self.events(stream_name=stream_name,\r\n    476                                  fields=[field],\r\n--> 477                                  fill=fill):\r\n    478             yield event['data'][field]\r\n    479 \r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/_core.py in events(self, stream_name, fields, fill)\r\n    365         ev_gen = self.db.get_events([self], stream_name=stream_name,\r\n    366                                     fields=fields, fill=fill)\r\n--> 367         for ev in ev_gen:\r\n    368             yield ev\r\n    369 \r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/_core.py in get_events(self, headers, stream_name, fields, fill, handler_registry)\r\n   1486                                             stream_name=stream_name,\r\n   1487                                             fill=fill,\r\n-> 1488                                             handler_registry=handler_registry):\r\n   1489             if name == 'event':\r\n   1490                 yield doc\r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/_core.py in get_documents(self, headers, stream_name, fields, fill, handler_registry)\r\n   1559                     for name, doc in gen:\r\n   1560                         if name == 'event':\r\n-> 1561                             doc = proc_gen.send(doc)\r\n   1562                         yield name, self.prepare_hook(name, doc)\r\n   1563                 proc_gen.close()\r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/_core.py in _fill_events_coro(self, descriptors, fields, inplace)\r\n   2012                     d_id = data[dk]\r\n   2013                     data[dk] = (registry_map[(desc_id, dk)]\r\n-> 2014                                 .retrieve(d_id))\r\n   2015                     filled[dk] = d_id\r\n   2016 \r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/assets/base_registry.py in retrieve(self, datum_id)\r\n    179         return self._api.retrieve(self._datum_col, datum_id,\r\n    180                                   self._datum_cache, self.get_spec_handler,\r\n--> 181                                   logger)\r\n    182 \r\n    183     def get_datum(self, datum_id):\r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/assets/core.py in retrieve(col, datum_id, datum_cache, get_spec_handler, logger)\r\n     63     datum = _get_datum_from_datum_id(col, datum_id, datum_cache, logger)\r\n     64     handler = get_spec_handler(datum['resource'])\r\n---> 65     return handler(**datum['datum_kwargs'])\r\n     66 \r\n     67 \r\n\r\n/opt/conda_envs/collection-2018-1.0.1/lib/python3.6/site-packages/databroker/assets/handlers.py in __call__(self, frame, channel)\r\n    639         # Don't read out the dataset until it is requested for the first time.\r\n    640         self._get_dataset()\r\n--> 641         return self._dataset[frame, channel - 1, :].squeeze()\r\n    642 \r\n    643     def get_roi(self, chan, bin_low, bin_high, frame=None, max_points=None):\r\n\r\nIndexError: index 2 is out of bounds for axis 0 with size 2\r\n```"}}
{"actor":{"display_login":"cmazzoli"}}