Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
popsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SVdetection
popsim
Commits
4ad4b4c6
Commit
4ad4b4c6
authored
7 years ago
by
Floreal Cabanettes
Browse files
Options
Downloads
Patches
Plain Diff
Fix code
parent
358f6d4c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build_results.py
+6
-4
6 additions, 4 deletions
build_results.py
with
6 additions
and
4 deletions
build_results.py
+
6
−
4
View file @
4ad4b4c6
...
@@ -501,7 +501,7 @@ def create_xls_document(args, headers, filtered_records, nb_records, nb_inds, ce
...
@@ -501,7 +501,7 @@ def create_xls_document(args, headers, filtered_records, nb_records, nb_inds, ce
try
:
try
:
import
xlsxwriter
import
xlsxwriter
except
ImportError
:
except
ImportError
:
print
(
"
Excel file not built: x
s
lxwriter python module not installed
"
)
print
(
"
\n
WARN:
Excel file not built: xl
s
xwriter python module not installed
"
)
return
False
return
False
with
xlsxwriter
.
Workbook
(
args
.
output
+
"
.xslx
"
)
as
workbook
:
with
xlsxwriter
.
Workbook
(
args
.
output
+
"
.xslx
"
)
as
workbook
:
...
@@ -555,6 +555,7 @@ def create_xls_document(args, headers, filtered_records, nb_records, nb_inds, ce
...
@@ -555,6 +555,7 @@ def create_xls_document(args, headers, filtered_records, nb_records, nb_inds, ce
# Resize columns:
# Resize columns:
worksheet_gq
.
set_column
(
0
,
0
,
max_col_len
[
0
]
+
1
)
worksheet_gq
.
set_column
(
0
,
0
,
max_col_len
[
0
]
+
1
)
return
True
def
create_tsv_file
(
filename
:
str
,
headers
:
list
,
cells
:
dict
,
nb_tools
:
int
,
nb_per_tool
:
int
,
records_range
:
()):
def
create_tsv_file
(
filename
:
str
,
headers
:
list
,
cells
:
dict
,
nb_tools
:
int
,
nb_per_tool
:
int
,
records_range
:
()):
...
@@ -810,9 +811,10 @@ def main():
...
@@ -810,9 +811,10 @@ def main():
i
+=
1
i
+=
1
# Create document:
# Create document:
with_xlsx
=
False
if
not
args
.
no_xls
:
if
not
args
.
no_xls
:
create_xls_document
(
args
,
headers
,
filtered_records
is
not
None
,
nb_records
,
nb_inds
,
cells
,
cells_gt
,
cells_gq
,
with_xlsx
=
create_xls_document
(
args
,
headers
,
filtered_records
is
not
None
,
nb_records
,
nb_inds
,
cells
,
cells_gt
,
cells_gq
,
max_col_len
)
max_col_len
)
# Create CSV files:
# Create CSV files:
create_tsv_file
(
args
.
output
+
"
_sv_per_tools.tsv
"
,
headers
,
cells
,
create_tsv_file
(
args
.
output
+
"
_sv_per_tools.tsv
"
,
headers
,
cells
,
...
@@ -837,7 +839,7 @@ def main():
...
@@ -837,7 +839,7 @@ def main():
print
(
str
(
nb_records
)
+
"
Results found
"
)
print
(
str
(
nb_records
)
+
"
Results found
"
)
print
(
str
(
orphans
)
+
"
False Positive
"
)
print
(
str
(
orphans
)
+
"
False Positive
"
)
print
(
""
)
print
(
""
)
if
not
args
.
no
_xls
:
if
with
_xls
x
:
print
(
"
Results saved in :
\n\t
-
"
+
args
.
output
+
"
.xslx
"
)
print
(
"
Results saved in :
\n\t
-
"
+
args
.
output
+
"
.xslx
"
)
else
:
else
:
print
(
"
Results:
"
)
print
(
"
Results:
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment