dnarayanan / powderday

powderday dust radiative transfer
BSD 3-Clause "New" or "Revised" License
22 stars 16 forks source link

SED generation multiprocessing overhaul #199

Closed prerakgarg07 closed 2 years ago

prerakgarg07 commented 2 years ago

This update overhauls the multiprocessing for SED generation. Stars are no longer divided into chunks which allows for more optimal use of cores. This can lead to a speed-up of up to 50% when nebular emission is turned on. The downside of this is that SED generation when nebular emission is turned off takes slightly longer because now a new thread has to start for each star. The increase in time though is very minimal and will not be noticeable.

Progress bars have been added for SED generation. This requires p_tqdm to be installed (https://github.com/swansonk14/p_tqdm). The installation docs and setup.py have been updated to reflect this requirement.

New Parameter added: