|
ensembl-hive-python3
2.8.1
|
Go to the documentation of this file.
22 """Factory that creates 1 job per digit found in the decimal representation of 'b_multiplier'"""
32 sub_tasks = [ {
'digit': _ }
for _
in set(str(b_multiplier)).difference(
'01') ]
33 self.
param(
'sub_tasks', sub_tasks)
37 time.sleep( self.
param(
'take_time') )
41 sub_tasks = self.
param(
'sub_tasks')
43 self.
warning(
'{0} multiplication jobs have been created'.format(len(sub_tasks)))
This is the counterpart of GuestProcess.
def param_defaults(self)
Returns the defaults parameters for this runnable.
def dataflow(self, output_ids, branch_name_or_code=1)
Dataflows the output_id(s) on a given branch (default 1).
Factory that creates 1 job per digit found in the decimal representation of 'b_multiplie".
def param_required(self, param_name)
Returns the value of the parameter "param_name" or raises an exception if anything wrong happens or t...
def warning(self, message, is_error=False)
Store a message in the log_message table with is_error indicating whether the warning is actually an ...
def param(self, param_name, *args)
When called as a setter: sets the value of the parameter "param_name".