bluepyemodel.tools.multiprocessing

Function related to parallel computing

Functions

get_mapper(backend[, ipyparallel_profile])

Get a mapper for parallel computations.

ipyparallel_map_function([os_env_profile, ...])

Get the map function linked to the ipython profile

Classes

NestedPool([processes, initializer, ...])

Class that represents a MultiProcessing nested pool

NoDaemonProcess([group, target, name, args, ...])

Class that represents a non-daemon process

class NestedPool(processes=None, initializer=None, initargs=(), maxtasksperchild=None, context=None)

Bases: Pool

Class that represents a MultiProcessing nested pool

Process

alias of NoDaemonProcess

class NoDaemonProcess(group=None, target=None, name=None, args=(), kwargs={})

Bases: Process

Class that represents a non-daemon process

Ensures group=None, for macosx.

property daemon

Get daemon flag

get_mapper(backend, ipyparallel_profile=None)

Get a mapper for parallel computations.

ipyparallel_map_function(os_env_profile='IPYTHON_PROFILE', profile=None)

Get the map function linked to the ipython profile

Parameters:
  • os_env_profile (str) – The name of the environment variable that holds the profile name for ipyparallel. If this environment variable exists and contains a valid profile name, it will be used to create an ipyparallel Client. Defaults to “IPYTHON_PROFILE”

  • profile (str) – name of the ipython profile

Returns:

map