Closed kif closed 6 months ago
The mask is not properly binned:
In [1]: import pyFAI,fabio;img = fabio.open("eiger_0000.h5").data;d=pyFAI.detector_factory("Eiger2_CdTe_9M")
In [2]: d.guess_binning(img)
Out[2]: True
In [3]: d.shape
Out[3]: (1631, 1554)
In [4]: d.mask
Out[4]:
array([[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]], dtype=int8)
In [5]: d.mask.shape
Out[5]: (3262, 3108)
This is an issue from the calib2 interface: when dealing with data from a Dectris Eiger2 9M which data have been binned 2x2 (I agree it makes no sense !)
While the Python interface deals with it properly:
The GUI considers the size of the image should remain (3262, 3108). Maybe it is the shape of the mask which is wrong:
Reported by ID27