Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
a7acd848
Commit
a7acd848
authored
Aug 19, 2014
by
Frédéric Escudié
Browse files
Improve NotImplementedError message.
parent
8b4d246c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
a7acd848
...
...
@@ -466,11 +466,11 @@ class Workflow(threading.Thread):
"""
Run the workflow, has to be implemented by subclasses
"""
raise
NotImplementedError
raise
NotImplementedError
(
"Workflow.process() must be implemented in "
+
self
.
__class__
.
__name__
)
def
get_name
(
self
):
"""
Return the workflow name
, has to be implemented by subclasses
Return the workflow name
.
"""
return
self
.
__class__
.
__name__
.
lower
()
...
...
@@ -478,13 +478,13 @@ class Workflow(threading.Thread):
"""
Return the workflow description, has to be implemented by subclasses
"""
raise
NotImplementedError
raise
NotImplementedError
(
"Workflow.get_description() must be implemented in "
+
self
.
__class__
.
__name__
)
def
define_parameters
(
self
,
parameters_section
=
None
):
"""
Define the workflow parameters, has to be implemented by subclasses
"""
raise
NotImplementedError
raise
NotImplementedError
(
"Workflow.define_parameters() must be implemented in "
+
self
.
__class__
.
__name__
)
def
post_process
(
self
):
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment