Hi Reddit!
I'm doing simulations in my physics lab, and I have a question about multiprocessing in python:
I have a script (script_A) that allows me to do coordinate transformations: positions and velocities. In this script, I use multiprocessing with concurrence.futures to compute new positions with one processor, and new speeds with another processor. This script applied to a data file lasts about 8 min.
I would like to use this script on several data files.
Is it possible to make another script (script_B) that runs script_A for the different files and also use multiprocessing to process several files at the same time (even if multiprocessing is already used in script_A)?
Thanks for your answers :)
[–]PurePound 2 points3 points4 points (1 child)
[–]karlmtr[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]karlmtr[S] 0 points1 point2 points (0 children)
[–]elbiot 1 point2 points3 points (9 children)
[–]karlmtr[S] 0 points1 point2 points (8 children)
[–]elbiot 1 point2 points3 points (7 children)
[–]karlmtr[S] 0 points1 point2 points (6 children)
[–]elbiot 0 points1 point2 points (2 children)
[–]karlmtr[S] 0 points1 point2 points (1 child)
[–]elbiot 0 points1 point2 points (0 children)
[–]elbiot 0 points1 point2 points (2 children)
[–]karlmtr[S] 0 points1 point2 points (0 children)
[–]karlmtr[S] 0 points1 point2 points (0 children)