[LPD] [Dark] Don't use multiprocessing inside multiprocessing when opening run
Description
There was an error opening the run if its JSON cache file didn't already exist, because it tried to use multiprocessing inside multiprocessing, which is not allowed. This avoids that scenario. Behaviour should be unchanged if the cache file exists.
How Has This Been Tested?
No specific tests, but the parallelize=False
option was added for precisely this use case - where you're already using a multiprocessing pool outside opening the run - so I'm confident in it.
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
- My code follows the code style of this project.
Reviewers
Merge request reports
Activity
mentioned in merge request !879 (merged)
changed milestone to %3.11.0
Yes, The CI didnt need to be merged on this one. But I guess this happened because it was rebased on this MR. The other fix MR was intentionally merged onto it. I expected that we merge this MR first before the others.
Edited by Karim AhmedAnd yes as @kluyvert explained, the CI was failing. But it has succeeded so no need to run it again https://git.xfel.eu/calibration/pycalibration/-/jobs/446933
Edited by Karim Ahmedmentioned in commit 02cf43fc