threeML.parallel.parallel_client module
- threeML.parallel.parallel_client.get_base_prefix_compat() str [source]
Get base/real prefix, or sys.prefix if there is none.
- threeML.parallel.parallel_client.parallel_computation(profile: str | None = None, start_cluster: bool = True, n_jobs: int | None = None) None [source]
A context manager which turns on parallel execution temporarily
- Parameters:
profile – the profile to use, if different from the default
start_cluster – True or False. Whether to start a new cluster. If False, try to use an existing one for the
same profile :return: