Package Bio :: Package PopGen :: Package Async :: Module Local :: Class Local
[hide private]
[frames] | no frames]

Class Local

source code

object --+    
         |    
     Async --+
             |
            Local

Execution on Local machine.
    

Instance Methods [hide private]
 
__init__(self, num_cores=1)
Constructor.
source code
 
_run_program(self, id, hook, parameters, input_files)
Run program.
source code
 
start_work(self)
Starts work.
source code

Inherited from Async: get_result, run_program

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, num_cores=1)
(Constructor)

source code 
Constructor.

parameters:
num_cores - Number of cores (for multiprocessor machines,
    multiply accordingly)

Overrides: object.__init__

_run_program(self, id, hook, parameters, input_files)

source code 
Run program.

For parameters, please check Async.run_program.

Either runs a program if a core is available or
schedules it.

Overrides: Async._run_program

start_work(self)

source code 
Starts work.

Thread initial point.
While there are tasks to be done, runs them.
The thread dies as soon as there is nothing waiting to be
executed.