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
genotoul-bioinfo
ng6
Commits
9887acd3
Commit
9887acd3
authored
Jun 03, 2020
by
Romain Therville
☕
Browse files
Update to the migration workflow.
Prints used for debug have been removed. Issue#129
parent
b412ffa6
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ng6/analysis.py
View file @
9887acd3
...
...
@@ -759,8 +759,6 @@ class Analysis (Component):
for
result_file
in
result_files
:
filename
=
os
.
path
.
basename
(
result_file
[
'rvalue'
])
new_filepath
=
self
.
get_full_filepath
(
filename
)
print
(
"new_filepath = "
+
str
(
new_filepath
))
print
(
"result uid = "
+
str
(
result_file
[
'uid'
]))
t3mysql
.
update_fields
(
'tx_nG6_result'
,
str
(
result_file
[
'uid'
]),
[
'rvalue'
],
[
str
(
new_filepath
)]
)
return
[
retcode
,
str_cmd
]
...
...
src/ng6/t3MySQLdb.py
View file @
9887acd3
...
...
@@ -1068,7 +1068,6 @@ class t3MySQLdb(object):
def
get_analysis_result_files
(
self
,
analysis_id
,
base_filepath
=
'fileadmin'
):
sql
=
"SELECT uid, rvalue FROM tx_nG6_result WHERE analyze_id='"
+
str
(
analysis_id
)
+
"' AND rvalue LIKE '"
+
str
(
base_filepath
)
+
"%'"
print
(
sql
)
qresult
=
self
.
execute
(
sql
)
results
=
[]
for
result
in
qresult
.
rows
:
...
...
workflows/switch_space_id/components/move_project.py
View file @
9887acd3
...
...
@@ -46,7 +46,6 @@ def migrate_project (project_id, new_space_id, output):
log_to_output_files
(
str_log
,
output
)
runs
=
project
.
get_runs
()
#print(runs)
for
run
in
runs
:
str_log
=
"
\t
- ##RUN '"
+
run
.
name
+
"' ("
+
str
(
run
.
id
)
+
") - "
+
run
.
directory
+
"
\n
"
log_to_output_files
(
str_log
,
output
)
...
...
@@ -65,9 +64,7 @@ def migrate_project (project_id, new_space_id, output):
log_to_output_files
(
str_log
,
output
)
analyzes
=
project
.
get_analysis
()
for
analysis
in
analyzes
:
print
(
analysis
.
results
)
for
analysis
in
analyzes
:
str_log
=
"
\t
- ##ANALYSE PROJECT '"
+
analysis
.
name
+
"' ("
+
str
(
analysis
.
id
)
+
") - "
+
analysis
.
directory
+
"
\n
"
log_to_output_files
(
str_log
,
output
)
...
...
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