threeML.parallel.parallel_client module¶
-
class
threeML.parallel.parallel_client.
ParallelClient
(*args, **kw)[source]¶ Bases:
ipyparallel.client.client.Client
-
threeML.parallel.parallel_client.
parallel_computation
(profile=None, start_cluster=True)[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: