-
Notifications
You must be signed in to change notification settings - Fork 3
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
BUG: Overlap in crystfel geometry for JF, possibly others #41
Comments
Actually, the problem goes deeper: if we use this file provided by Anton as an example of the data layout expected: https://github.com/slaclab/psgeom/blob/master/ref_files/jungfrau/jungfrau-1M-pan.geom we need to format the min/max fs/ss flags to match the (4x8) ASIC layout |
So, to do:
To do this we need to figure out the layout of the panel assembly for each basis_grid grid element here: https://github.com/slaclab/psgeom/blob/master/psgeom/translate.py#L816 For each grid element, we need to look back at the detector object and find out
Correspondingly, we need two methods,
|
Be aware that currently CrystFEL (More precisely Cheetah) cannot deal with a 3-d array (for example 8x512x1024), but only with a 2-d array (called the "slab"). What is usually done is that the array is "flattened" along the slowest scan coordinate. For example: 8x512x1024 -> 4096x1024 |
However, I would generate an array that matches the real geometry, and maybe leave the flattening to a separate script or the user |
@valmar right... I don't think we should mess with formatting the raw data here. But we can strive to write a crystfel geometry that anticipates "the slab" format. Do you think that makes sense? |
What I mean is that if the data, like in this case, comes as a 8x512x1024 array, the geometry should describe that, then it is enough to flatten the array in the geometry file to correctly read the raw data (because we flatten along the slowest axis!)
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Friday, May 15, 2020 5:27 PM, TJ Lane ***@***.***> wrote:
***@***.***(https://github.com/valmar) right... I don't think we should mess with formatting the raw data here. But we can strive to write a crystfel geometry that anticipates "the slab" format. Do you think that makes sense?
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#41 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAEILBJNETGN6RTXGOMKYSTRRVNNTANCNFSM4NA4MGHQ).
|
yes OK we agree! sounds good. The plan above basically sketches how to do this. Do you need it urgently? Otherwise I will probably get to it early/mid next week. |
No, no for my tests I can create a geometry file manually, it's not (yet) for use on real data.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Friday, May 15, 2020 5:49 PM, TJ Lane ***@***.***> wrote:
yes OK we agree! sounds good. The plan above basically sketches how to do this. Do you need it urgently? Otherwise I will probably get to it early/mid next week.
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#41 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAEILBJRPAXPRMOVM2OWXF3RRVQCDANCNFSM4NA4MGHQ).
|
@valmar when you have a moment: could you look at the current code in |
Last thing to do. Think about removing the bespoke code for the CSPAD: https://github.com/slaclab/psgeom/blob/master/psgeom/translate.py#L901 in favor of the new more general code. This would be great. To do so, we would want to:
|
@tjlane Why did you reopen this? What is missing? |
@valmar sorry for the confusion. The main issue is resolved, there is just a little cleanup we can do that I don't want to forget about. Specifically, there are currently two functions to write crystfel geometries: https://github.com/slaclab/psgeom/blob/master/psgeom/translate.py#L777 The second is a special one just for CSPADs that we now remove. This isn't urgent but I just don't want to forget about it! |
From Valerio:
max_fs and max_ss are inclusive. This means that, for example pixel ss 255 belongs to p0, but as you can see, it is also the first ss pixel of p1, so that pixel appears in two panels.
The text was updated successfully, but these errors were encountered: