rl-institut / simbev

MIT License
10 stars 4 forks source link

Feature #98/better multiprocessing #102

Open mosc5 opened 1 year ago

mosc5 commented 1 year ago

Before merging, consider how we want to handle console outputs during multiprocessing.

Closes #98

JakobWeg commented 1 year ago

Somehow the grid time series and analysis outputs are empty when running multiprocessing.

mosc5 commented 1 year ago

Output issues probably stem from parallel access of data that's saved in region during the multiprocessing of cars (trying to change the grid series while charging, adding events to the analyze output)

Edit: This might a bigger issue with how arguments work during multiprocessing. We might have to scrap the idea of parallelizing the cars as it would require a lot of restructuring work. Other possible solution for better performance would be an automatic split of regions that later gets combined back together.