Commit a415da39 authored by Betoule Marc's avatar Betoule Marc
Browse files

bug #757 move get_output_file to pipeline object

parent d6faf156
......@@ -434,6 +434,19 @@ class Pipeline:
"""
return self._curr_dirs[seg]
def get_output_file(self, seg):
""" Return the segment output file
Parameters
----------
seg : string, segment name.
Returns
-------
string, segment directory.
"""
return path.join(self.get_curr_dir(seg),'seg_%s.output'%seg)
def get_param_file(self, seg):
""" Return the segment directory.
......
......@@ -150,7 +150,7 @@ class Worker(object):
----------
res: task result.
"""
fn = self.get_data_fn('.pipe_res') # TODO move this to pipe
fn = self.pipe.get_output_fn()
with closing (file(fn,'w')) as f:
r = pickle.dump(res,f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment