Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
34ce0e63
Commit
34ce0e63
authored
Feb 23, 2016
by
HERBERT Ryan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task.py removed log parsing and added p.wait() instead
parent
1ff3540f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
server/web2py/applications/vidjil/models/task.py
server/web2py/applications/vidjil/models/task.py
+1
-8
No files found.
server/web2py/applications/vidjil/models/task.py
View file @
34ce0e63
...
@@ -243,6 +243,7 @@ def run_mixcr(id_file, id_config, id_data, clean_before=False, clean_after=False
...
@@ -243,6 +243,7 @@ def run_mixcr(id_file, id_config, id_data, clean_before=False, clean_after=False
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
p
=
Popen
(
cmd
,
shell
=
True
,
stdin
=
PIPE
,
stdout
=
log_file
,
stderr
=
STDOUT
,
close_fds
=
True
)
p
=
Popen
(
cmd
,
shell
=
True
,
stdin
=
PIPE
,
stdout
=
log_file
,
stderr
=
STDOUT
,
close_fds
=
True
)
p
.
wait
()
print
"Output log in "
+
out_log
print
"Output log in "
+
out_log
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
...
@@ -252,14 +253,6 @@ def run_mixcr(id_file, id_config, id_data, clean_before=False, clean_after=False
...
@@ -252,14 +253,6 @@ def run_mixcr(id_file, id_config, id_data, clean_before=False, clean_after=False
alignments_filepath
=
os
.
path
.
abspath
(
out_alignments
)
alignments_filepath
=
os
.
path
.
abspath
(
out_alignments
)
results_filepath
=
""
results_filepath
=
""
try
:
stream
=
open
(
alignments_filepath
,
'rb'
)
print
alignments_filepath
except
IOError
:
print
"!!! MiXCR failed to start"
res
=
{
"message"
:
"[%s] c%s: MiXCR FAILED - %s"
%
(
id_data
,
id_config
,
out_folder
)}
log
.
error
(
res
)
raise
IOError
## insertion dans la base de donnée
## insertion dans la base de donnée
...
...
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