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

Add argument to choose number of threads used in multiprocess #38

Open PierreLaville opened 3 months ago

PierreLaville commented 3 months ago

Replace with: with concurrent.futures.ProcessPoolExecutor(max_workers=12) as executor: for 12 threads (use variable with argument value instead)

huguesrichard commented 3 months ago

I think this is a very good idea. Would there be a way to read the amount of possible threads and fix it to half of it by default?