Open cmazzoli opened 6 years ago
This scan involved 2 frames/count. In the debug mode I've found that self._dataset
has 2 entries, but at the line 641 it's attempted the read the third element of the array (frame=2
). When I use 1 frame/count, it works fine.
@tacaswell, any idea what's wrong here?
as a first step, i would
stream = db['21a1f62d-7dd0-4856-873f-122b0f27c0f5'].documents()
and keep hitting
next(stream)
and see if anything looks funny
Thanks @jrmlhermitte, I tried that, here is the log:
i should have mentioned try documents(fill=True)
When I try that, I get a new error:
OSError: Unable to open file (unable to open file: name = '/GPFS/xf23id/xf23id1/xspress3_data/2018/03/28/04623de1-316b-4cb0-b137_000000.h5', errno = 116, error message = 'Stale file handle', flags = 0, o_flags = 0)
In [20]: !ls /GPFS/xf23id/xf23id1
ls: cannot access /GPFS/xf23id/xf23id1: Stale file handle
I have emailed IT about this. Once resolved, filling could help us better understand what is going on i think.
what scan generated this? I have looked at error now and it seems that you're trying to read an hdf5 file that only has two data points
IndexError: index 2 is out of bounds for axis 0 with size 2
In [10]: %debug
> /opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/databroker/assets/handlers.py(641)__call__()
639 # Don't read out the dataset until it is requested for the first time.
640 self._get_dataset()
--> 641 return self._dataset[frame, channel - 1, :].squeeze()
642
643 def get_roi(self, chan, bin_low, bin_high, frame=None, max_points=None):
ipdb> p channel
1
ipdb> p self._dataset
array([[[ 9.00071972, 9.00071972, 10.00079969, ..., 0. ,
0. , 0. ]],
[[ 5.00014788, 10.00029576, 9.00026618, ..., 0. ,
0. , 0. ]]])
ipdb> p frame
2