Currently, the stacking feature adds a lot of code to various parts of ShmemTrainMatcher
.
It would be nice if this could be cleaner, for:
ShmemTrainMatcher
DetectorAssembler
also does stacking except in its own less good wayShmemTrainMatcher
and some of the resulting matching-and-processing devices will want to stackhandle_source
is intended to be run in a thread pool, only one train can be processed at a time; this requires rethinking of buffer handling to change
safeNDArray
flag in the current versionPlan for this MR:
DetectorAssembler
to use StackingFriend
to stack before assemblyDetectorAssembler
correspondinglyDetectorAssembler
is not a great fit actually; maybe use xarray
and exploit extra-geom
's partial data assembly functionality (Out of scope; see !74 (closed))