Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8236181c
Commit
8236181c
authored
Feb 17, 2014
by
Evgeniy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more colorizing options to XLS generating script
parent
e8d26b02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
xls-report.py
modules/ts/misc/xls-report.py
+4
-1
No files found.
modules/ts/misc/xls-report.py
View file @
8236181c
...
...
@@ -97,6 +97,9 @@ re_data_type = re.compile(r'^ (?: 8 | 16 | 32 | 64 ) [USF] C [1234] $', re.VERBO
time_style
=
xlwt
.
easyxf
(
num_format_str
=
'#0.00'
)
no_time_style
=
xlwt
.
easyxf
(
'pattern: pattern solid, fore_color gray25'
)
failed_style
=
xlwt
.
easyxf
(
'pattern: pattern solid, fore_color red'
)
noimpl_style
=
xlwt
.
easyxf
(
'pattern: pattern solid, fore_color orange'
)
style_dict
=
{
"failed"
:
failed_style
,
"noimpl"
:
noimpl_style
}
speedup_style
=
time_style
good_speedup_style
=
xlwt
.
easyxf
(
'font: color green'
,
num_format_str
=
'#0.00'
)
...
...
@@ -328,7 +331,7 @@ def main():
for
c
in
config_names
:
if
c
in
configs
:
sheet
.
write
(
row
,
col
,
configs
[
c
],
time_style
)
sheet
.
write
(
row
,
col
,
configs
[
c
],
style_dict
.
get
(
configs
[
c
],
time_style
)
)
else
:
sheet
.
write
(
row
,
col
,
None
,
no_time_style
)
col
+=
1
...
...
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