Open yugangzhang opened 7 years ago
I suggest implementing this in the Eiger handler to return a frame of np.nan
on this sort of failure.
I don't see this error with this uid. Do you have another uid to test on?
uid = '0da0ea'
imgs = db['uid'].data('eiger4m_single_image')
for img in imgs:
print(img[0])
At CHX, we met a problem that the function get_image (/opt/conda_envs/analysis/lib/python3.5/site-packages/databroker/pims_readers.py) can't open some files recorded by Eiger4M detector. We knew that some frames (typically the first several frames) of that files were broken, but most of the frames are good and we can open them by albula, a GUI provided by Eiger company. Here is an example:
and we got
Can we add options, like 'good_start/stop_frame', in the get_images function? So, if the func can't open some frames, it give a warning message for that bad frames and continue to give all the good frames.