Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
9153523d
Commit
9153523d
authored
Apr 21, 2016
by
Mathieu Giraud
Browse files
task.py: comments
parent
ac9e6893
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/task.py
View file @
9153523d
...
...
@@ -629,6 +629,11 @@ def schedule_pre_process(sequence_file_id, pre_process_id):
def
run_pre_process
(
pre_process_id
,
sequence_file_id
,
clean_before
=
True
,
clean_after
=
False
):
'''
Run a pre-process on sequence_file.data_file (and possibly sequence_file.data_file+2),
put the output back in sequence_file.data_file.
'''
from
subprocess
import
Popen
,
PIPE
,
STDOUT
,
os
out_folder
=
defs
.
DIR_PRE_VIDJIL_ID
%
sequence_file_id
...
...
@@ -675,6 +680,8 @@ def run_pre_process(pre_process_id, sequence_file_id, clean_before=True, clean_a
log
.
error
(
res
)
raise
IOError
# Now we update the sequence file with the result of the pre-process
# We forget the initial data_file (and possibly data_file2)
db
.
sequence_file
[
sequence_file_id
]
=
dict
(
data_file
=
stream
,
data_file2
=
None
,
pre_process_flag
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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