-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for multi-frame hdf5 files #2221
Comments
Apparently the file-driver used is currently EDF ... can you try to switch format with |
Indeed it works with |
Well, I tried to understand the reason for the bug, and EDF is tailored for 1&2D data. Here the dataset looks of higher dimentionnality. The fact is: this is a bug which deserves a proper fix, and I suspected other fileformat would be more permissive. I need first to have a proper look at the data coming from those new detectors. About the automatic determination of the fileformat: it is true a |
I have looked at the problem. Marco tries to process the (N x M x K x P) data where additional M is a dimension related to frames recorded at different detector thresholds. From a general point of view, I could think about a few solutions:
Personally, I opt for solution number 3 until there is a strong need to use 2D data file formats for this case. Also, we can think about a specific solution that we save stack to edf but what about other 2d formats? |
It could be frustrating for the user to wait for a minute or two for the compete dataset to be read and then have the program crashing just at the ends. I would go for a warning, saying that there is an issue with the shape of what came in (option 3) but then try to save anyway. If the reduced dataset is 3d: take the first frame, create a fabioimage instance with it. If this fabioimage has an "append_frame" method, just, stuff all the frames in it and save. If not, save each frame deserves to be saved into an independent file. |
Dear Jerome and all,
as you are certainly aware of, lima2 can handle more than one images taken with more than one threshold.
At id10, we have already one Eiger2 4M running with Lima2
When I tried to use pyFAI-average, we get the error message reported below (pyFAI 2024.5.0)
It would be great if pyFAI-average (and possibly other CLIs?) can be improved to support Lima2 files.
Thanks,
marco
The text was updated successfully, but these errors were encountered: