Closed takluyver closed 5 years ago
I would go for the first method and make a StackedData
class which has several methods to provide the necessary np.array
interface, e.g. shape property:
stack_detector_data
function. No matter what, you do not need to touch the method position_modules_fast
which is used for assembling.PR #196 is an initial attempt at implementing option 1.
Done in #196.
From discussion relating to KaraboFAI: if you want to load data from AGIPD/LPD/DSSC and assemble it, it currently gets copied twice in memory:
individual module arrays -> stacked array -> assembled image
The first of these copies should be unnecessary. There are two basic schemes for how we could avoid it: