[BUG] integration in the pipeline doesn't work

22 views
Skip to first unread message

Soham Banerjee

unread,
Nov 1, 2017, 11:09:58 AM11/1/17
to xpd-users
Here is the error


start mask
/home/xf28id1/src/scikit-beam/skbeam/core/accumulators/binned_statistic.py:174: RuntimeWarning: divide by zero encountered in log10
  decimal = int(-np.log10(dedges[i].min())) + 6
ERROR:asyncio:Exception in callback Dispatcher.process(<DocumentNames.event: 'event'>, {'data': {'pe1_image': '67f3695a-bf4...-ca064d69531b', 'pe1_stats1_total': 20714600197.26367}, 'descriptor': '2d339666-f05...-830e159f9782', 'filled': {'pe1_image': False}, 'seq_num': 1, ...})
handle: <Handle Dispatcher.process(<DocumentNames.event: 'event'>, {'data': {'pe1_image': '67f3695a-bf4...-ca064d69531b', 'pe1_stats1_total': 20714600197.26367}, 'descriptor': '2d339666-f05...-830e159f9782', 'filled': {'pe1_image': False}, 'seq_num': 1, ...})>
Traceback (most recent call last):
  File "/home/xf28id1/conda_envs/17Q3-dev/lib/python3.6/asyncio/events.py", line 127, in _run
    self._callback(*self._args)
  File "/home/xf28id1/conda_envs/17Q3-dev/lib/python3.6/site-packages/bluesky/run_engine.py", line 2091, in process
    exceptions = self.cb_registry.process(name, name.name, doc)
  File "/home/xf28id1/conda_envs/17Q3-dev/lib/python3.6/site-packages/bluesky/utils.py", line 278, in process
    func(*args, **kwargs)
  File "/home/xf28id1/conda_envs/17Q3-dev/lib/python3.6/site-packages/bluesky/utils.py", line 359, in __call__
    return mtd(*args, **kwargs)
  File "/home/xf28id1/conda_envs/17Q3-dev/lib/python3.6/site-packages/bluesky/callbacks/core.py", line 21, in __call__
    return getattr(self, name)(doc)
  File "/home/xf28id1/src/xpdan/xpdan/pipelines/callback.py", line 245, in event
    self.mask = mask_img(img, geo, **self.mask_kwargs)
  File "/home/xf28id1/src/xpdan/xpdan/tools.py", line 261, in mask_img
    tmsk=working_mask)
  File "/home/xf28id1/src/xpdan/xpdan/tools.py", line 50, in new_masking_method
    qbinned = generate_binner(geo, img.shape)
  File "/home/xf28id1/src/xpdan/xpdan/tools.py", line 340, in generate_binner
    return BinnedStatistic1D(q.flatten(), bins=qbin, mask=mask)
  File "/home/xf28id1/src/scikit-beam/skbeam/core/accumulators/binned_statistic.py", line 421, in __init__
    mask=mask)
  File "/home/xf28id1/src/scikit-beam/skbeam/core/accumulators/binned_statistic.py", line 174, in __init__
    decimal = int(-np.log10(dedges[i].min())) + 6
OverflowError: cannot convert float infinity to integer

Christopher Wright

unread,
Nov 1, 2017, 11:15:34 AM11/1/17
to Soham Banerjee, xpd-users
Thank you for reporting!

This seems to be a bug in scikit-beam, I'm investigating and will try to implement a hotfix ASAP and a PR into skbeam.

--
You received this message because you are subscribed to the Google Groups "xpd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xpd-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xpd-users/062585eb-ce3a-41ee-b85c-9dce5fedffda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher Wright

unread,
Nov 1, 2017, 2:55:37 PM11/1/17
to xpd-...@googlegroups.com, sbane...@gmail.com
The bug was in xpdAn, and has been hotfixed at the beamline and has an active PR into master.

Reply all
Reply to author
Forward
0 new messages