kammerje / spaceKLIP

Pipeline for reducing JWST high-contrast imaging data. Published in Kammerer et al. 2022 and Carter et al. 2022.
https://ui.adsabs.harvard.edu/abs/2022SPIE12180E..3NK/abstract
MIT License
16 stars 9 forks source link

multiprocess fix #146

Closed JarronL closed 6 months ago

JarronL commented 6 months ago

Quick fix to account for different naming conventions of multiprocess threads. Some versions of multiprocessing can spawn threads with the name "PoolWorker-N" as well as "Process-N". If we are already in such a spawned thread, then we should not run more new multiprocess threads. This expands the 1/f noise multiprocessing to check for such instances.