European-XFEL / EXtra-geom

Use EuXFEL detector geometry to assemble images
https://extra-geom.rtfd.io
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Update geometry metadata for masks #297

Open turkot opened 4 months ago

turkot commented 4 months ago

In CrystFEL geometry files mask information can be provided as (old style): mask_file = mask = mask_good = 0x0 mask_bad = 0xffff

or (new style, from CrystFEL v0.10.0): mask{N}_file = mask{N}_data = mask{N}_goodbits = 0x0 mask{N}_badbits = 0xffff with {N} in an inclusive range [0, 7].

This MR implements reading and storing of mask information in both styles. It will not work with the current version of cfelpyutils, but the required update to that package is also under way.