Get assembled image
In order to do the geometry calibration in pyFAI, one needs to have an assembled image. Taking into account several modules, but also multi-pixel gaps like in single Jungfrau, AGIPD or ePix modules.
For Jngfr, one can get the assembled image like this:
assembled_image = exp_setup.detector.geom.position_modules(data.mean('trainId').data[None,:,:])[0]
Which is fine but a bit longish.
However, we already do the assembling in setup.plot_data for all the different detector cases already. Should we move this to a different function, like setup.get_assembled, which is also called in setup.plot_data then? But which can also be used to generate an assembled image for the use in pyFAI-calib2?