Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
a415da39
Commit
a415da39
authored
Aug 25, 2010
by
Betoule Marc
Browse files
bug #757 move get_output_file to pipeline object
parent
d6faf156
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
pipelet/pipeline.py
pipelet/pipeline.py
+13
-0
pipelet/worker.py
pipelet/worker.py
+1
-1
No files found.
pipelet/pipeline.py
View file @
a415da39
...
...
@@ -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.
...
...
pipelet/worker.py
View file @
a415da39
...
...
@@ -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
)
...
...
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