|
ensembl-hive-python3
2.7.0
|
Go to the documentation of this file.
26 """Simple Runnable to test as a standaloneJob"""
37 self.
warning(
"Fetch the world !")
41 print(
"my directory name is", self.
temp_dir)
48 print(
"set gamma to", s)
52 raise OverflowError(s)
53 self.
param(
'gamma', s)
58 self.
warning(
"Write to the world !")
59 print(
"gamma is", self.
param(
'gamma'))
61 print(
"Greetings in place:", os.path.exists(self.
greeting_path))
67 eHive.testRunnable(self,
71 eHive.WarningEvent(
'Fetch the world !', is_error=
False),
72 eHive.WarningEvent(
'Run the world !', is_error=
False),
73 eHive.WarningEvent(
'Write to the world !', is_error=
False),
74 eHive.DataflowEvent({
'gamma': 115}, branch_name_or_code=2),
77 eHive.testRunnable(self,
83 eHive.WarningEvent(
'Fetch the world !', is_error=
False),
84 eHive.WarningEvent(
'Run the world !', is_error=
False),
85 eHive.FailureEvent(OverflowError, (315,)),
88 eHive.testRunnable(self,
94 eHive.WarningEvent(
'Fetch the world !', is_error=
False),
95 eHive.WarningEvent(
'Run the world !', is_error=
False),
96 eHive.CompleteEarlyEvent(
'Nothing to do'),
This is the counterpart of GuestProcess.
def dataflow(self, output_ids, branch_name_or_code=1)
Dataflows the output_id(s) on a given branch (default 1).
def worker_temp_directory(self)
Returns the full path of the temporary directory created by the worker.
Can be raised by a derived class of BaseRunnable to indicate an early successful termination.
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".
def test_TestRunnable(self)
def param_defaults(self)
Returns the defaults parameters for this runnable.
Simple Runnable to test as a standaloneJo.