Skip to content

Commit 4d89143

Browse files
committed
base_dir in Workflow
1 parent 4b59a77 commit 4d89143

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

nipype/pipeline/engine.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,18 @@ def load(self, filename):
209209
class Workflow(WorkflowBase):
210210
"""Controls the setup and execution of a pipeline of processes."""
211211

212-
def __init__(self, name, *args, **kwargs):
213-
super(Workflow, self).__init__(name, *args, **kwargs)
212+
def __init__(self, name, base_dir=None, *args, **kwargs):
213+
"""Create a workflow object.
214+
215+
Parameters
216+
----------
217+
name : alphanumeric string
218+
unique identifier for the workflow
219+
base_dir : string, optional
220+
path to workflow storage
221+
222+
"""
223+
super(Workflow, self).__init__(name, base_dir, *args, **kwargs)
214224
self._graph = nx.DiGraph()
215225
self.config = deepcopy(config._sections)
216226

0 commit comments

Comments
 (0)