Open woutdenolf opened 2 years ago
Odd frame dimensions is rather... odd. I can't remember why we have this limitation from the top of my head, especially if binning is not used... For my records, what is the frame size of the Pilatus1M (Dectris or SLS)?
>>> from pyFAI.detectors import detector_factory
>>> detector_factory("Pilatus1M").shape
(1043, 981)
>>> detector_factory("Pilatus2M").shape
(1679, 1475)
Seems that odd dimensions are very common:
https://github.com/silx-kit/pyFAI/blob/master/pyFAI/detectors/_dectris.py
I see, this is how pyFAI sees the image reconstructed (with the gaps and the pixels that are larger on the side of chips/modules). The vendor specification says otherwise:
That being said, we can probably support odd pixel dimensions without too much effort.
@sdebionne It would be very helpful if this could be done before the first ewoks training in May.
To simulate real detector like the Pilatus1M we need odd frame sizes.
This is currently not supported: https://github.com/esrf-bliss/Lima-camera-simulator/blob/d73aa87696ec7a50da69aa7d640db2308d631710/src/SimulatorFrameBuilder.cpp#L126-L133