Permalink
Browse files

Updated the workflow_creation.py according to the recommendations mad…

…e by Serge

1) Slightly modified the comments to tell that we are creating a separate file called as my_workflow.py in <dipy/workflows> folder.
2) Removed the first line about the import statements.
3) Comments are more precise now.
  • Loading branch information...
Parichit Sharma
Parichit Sharma committed May 16, 2018
1 parent c5729fc commit 34937d493972019636823ad7cfb50f773971654b
Showing with 4 additions and 5 deletions.
  1. +4 −5 doc/examples/workflow_creation.py
@@ -13,7 +13,7 @@
"""

"""
First create your workflow. Usually this would be in its own python file in
First create your workflow (let's name this workflow file as my_workflow.py). Usually this is a python file in
the ``<../dipy/workflows>`` directory.
"""

@@ -98,13 +98,12 @@ def run(self, input_files, text_to_append='dipy', out_dir='',

"""
These lines will import the required files and classes into the python file. The
first line imports the run_flow method from the flow_runner class and the second
line imports the AppendTextFlow method from the newly created workflow class.
The first line imports the run_flow method from the flow_runner class and the second
line imports the AppendTextFlow class from the newly created my_workflow.py file.
"""

from dipy.workflows.flow_runner import run_flow
from dipy.workflows.AppendTextFlow import AppendTextFlow
from dipy.workflows.my_workflow import AppendTextFlow
"""
This is the method that will wrap everything that is needed to make a flow
command line ready then run it.

0 comments on commit 34937d4

Please sign in to comment.