Closed jrmlhermitte closed 6 years ago
Ran this test on all possible 4 file formats. I am able to retrieve images. Need to check with Yugang (warning this code is messy): https://gist.github.com/jrmlhermitte/750b031a74a9529535d7d25a6d7cb98f
This seem like a good time to add some tests on realistic HDF5 files. In order to keep eiger-io lightweight, let's generate HDF5 files as part of the test process (rather than putting binary HDF5 files under version control).
First pass at handlers. TODO : need to check with Yugang that this works with his analysis code (and doesn't run any slower...) I basically copied and pasted bits of the old handler for the PIMS version and wrote the dask version from scratch. Note that in the new version,
EigerImages
does not take filename as argument but rather dask array (we can do this since the array given by handler is already lazy).What this does:
AD_EIGER
andAD_EIGER2
is the keyword argument supplied to the resource. It wasframe_per_point
forAD_EIGER
andimages_per_file
inAD_EIGER2
.Normal way:
Dask way:
@danielballan @mrakitin