batchflow
batchflow copied to clipboard
Refactor `inbatch_parallel`
As the inbatch_parallel now not supposed to be used on its own, we can refactor it with following goals in mind:
- [ ] remove
_use_selfargs - [ ] remove
init/postfunctions: the container withinitshould be passed directly fromBatch.apply_parallel, and the results should be post-processed in theBatch.apply_parallelas well - [ ] make
inbatch_parallela class: that would allow for easier introspection and parameter changes on the fly, for example,targetto any other.
use inspect to check whether src/dst should be passed to the method
Avoid inspect if possible. Use inbatch_parallel arguments instead.