Created
March 30, 2016 17:21
-
-
Save CJ-Wright/a6b31d3d3b116dd5c8ed0ca373a382a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
DatumNotFound Traceback (most recent call last) | |
<ipython-input-26-0b516695237d> in <module>() | |
----> 1 ev0 = next(events) | |
/mnt/work-data/other_src/databroker/databroker/databroker.pyc in get_events(headers, fields, fill, handler_registry, handler_overrides) | |
402 # (else omit it from the events of this descriptor) | |
403 if fill: | |
--> 404 fill_event(event, handler_registry, handler_overrides) | |
405 yield event | |
406 | |
/mnt/work-data/other_src/databroker/databroker/databroker.pyc in fill_event(event, handler_registry, handler_overrides) | |
280 if is_external.get(data_key, False): | |
281 if data_key not in handler_overrides: | |
--> 282 event.data[data_key] = fs.retrieve(value, handler_registry) | |
283 else: | |
284 mock_registry = mock_registries[data_key] | |
/mnt/work-data/other_src/filestore/filestore/api.pyc in get_data(eid, handler_registry) | |
154 handler_registry = {} | |
155 with _FS_SINGLETON.handler_context(handler_registry) as fs: | |
--> 156 return fs.get_datum(eid) | |
157 | |
158 | |
/mnt/work-data/other_src/filestore/filestore/fs.pyc in get_datum(self, eid) | |
113 return _get_datum(self._datum_col, eid, | |
114 self._datum_cache, self.get_spec_handler, | |
--> 115 logger) | |
116 | |
117 def register_handler(self, key, handler, overwrite=False): | |
/mnt/work-data/other_src/filestore/filestore/core.pyc in get_datum(col, eid, datum_cache, get_spec_handler, logger) | |
21 if edoc is None: | |
22 raise DatumNotFound( | |
---> 23 "No datum found with datum_id {!r}".format(eid)) | |
24 # save it for later | |
25 datum = {k: edoc[k] for k in keys} | |
DatumNotFound: No datum found with datum_id UUID('6cb196b2-5731-4fed-a07a-988db71b8373') |
Author
CJ-Wright
commented
Apr 4, 2016
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-134-0c8c3c2b4296> in <module>()
1 from metadatastore.commands import get_events_generator
----> 2 for descriptor in descriptors:
3 events_generator = get_events_generator(descriptor)
4 ev0 = next(events_generator)
5 assert list(ev0.data.keys()) == list(descriptor.data_keys.keys())
NameError: name 'descriptors' is not defined
data_keys1 = {'I0': dict(source='IO', dtype='number'),
'img': dict(source='det', dtype='array',
shape=(2048, 2048),
external='FILESTORE:'),
'detz': dict(source='detz', dtype='number')}
In [20]: dm.bin_on('I0', interpolation={'T':'linear'})
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-20-f35af28f1e55> in <module>()
----> 1 dm.bin_on('I0', interpolation={'T':'linear'})
/mnt/work-data/other_src/datamuxer/datamuxer.py in bin_on(self, source_name, interpolation, agg, use_cols)
551 http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html
552 """
--> 553 centers, bin_edges = self._bin_on(source_name)
554 return self.bin_by_edges(bin_edges, bin_anchors=centers,
555 interpolation=interpolation, agg=agg,
/mnt/work-data/other_src/datamuxer/datamuxer.py in _bin_on(self, source_name)
562
563 # [2, 4, 6] -> [-inf, 3, 5, inf]
--> 564 bin_edges = np.mean([centers[1:], centers[:-1]], 0)
565 # [-inf, 3, 5, inf] -> [(-inf, 3), (3, 5), (5, inf)]
566 bin_edges = [-np.inf] + list(np.repeat(bin_edges, 2)) + [np.inf]
/mnt/work-data/other_src/anaconda/envs/dp_dev/lib/python2.7/site-packages/numpy/core/fromnumeric.pyc in mean(a, axis, dtype, out, keepdims)
2876
2877 return _methods._mean(a, axis=axis, dtype=dtype,
-> 2878 out=out, keepdims=keepdims)
2879
2880
/mnt/work-data/other_src/anaconda/envs/dp_dev/lib/python2.7/site-packages/numpy/core/_methods.pyc in _mean(a, axis, dtype, out, keepdims)
63 dtype = mu.dtype('f8')
64
---> 65 ret = umr_sum(arr, axis, dtype, out, keepdims)
66 if isinstance(ret, mu.ndarray):
67 ret = um.true_divide(
TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('<M8[ns]')
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment