Age | Commit message (Collapse) | Author |
|
This adds a new routine, data_template_slabby_file_to_panel_coords, to
be used (only!) in places where external forces require assumptions of
slabbiness: pixel maps and MsgPack/HDF5 peak lists (including
CXI-style).
This also fixes the prototype of data_template_file_to_panel_coords to
make the panel number strictly an input parameter. This was an
oversight in the implementation of DataTemplate, and caused problems
when reading non-slabby streams.
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/66
|
|
|
|
Bad regions specified in terms of x/y still require an iteration over
all pixels of the detector, but I don't see an easy way around that.
Avoiding x/y bad regions will give best performance.
|
|
...and factorise common code
|
|
Also, this fixes some incorrect headers and adds --version flags to
programs which didn't yet have them.
|
|
NB The coffset is no longer written to the HDF5 file. This was a
terrible hack anyway. The resolution field is just as bad, but as least
easy to get from the detgeom.
|
|
|
|
|
|
|
|
|
|
|