huguesrichard / Allopipe

AlloPipe is a computational method to assess the alloreactivity expected from a donor/recipient transplantation pair
MIT License
0 stars 0 forks source link

Choose number of workers for multiprocessing (AMS + af-AMS) #27

Open PierreLaville opened 1 month ago

PierreLaville commented 1 month ago

Currently: takes all available. Todo: set number of workers as an argument (default: all ; all - 1 ; all - X ?)

Set with max_workers=XX: Ex. ProcessPoolExecutor(max_workers=12) https://github.com/huguesrichard/Allopipe/blob/660b3ff2a2d408e61a8dea9dea6195f89bf1af93/src/multiprocess_ams.py#L97