Skip to content

Commit

Permalink
Fix spreadsheet coloring. Fix power unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjablin committed Mar 31, 2022
1 parent ca18f5c commit 33894a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tools/submission/generate-final-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def main():
indices['closed'] = [
'ID',
'Unique ID (e.g. for Audit)',
'ColorKey',
'Submitter',
'Availability',
'System',
Expand Down Expand Up @@ -99,7 +100,6 @@ def main():
'Samples/s',
'Queries/s',
'Joules',
'Joules/Stream',
'Watts',
]]

Expand Down Expand Up @@ -168,6 +168,8 @@ def MakeUniqueID(x):
return '/'.join(x[key_list])

df['Unique ID (e.g. for Audit)'] = df.apply(MakeUniqueID, axis=1)
df['ColorKey'] = df.apply(
lambda x: ''.join(x[['Availability', 'Submitter']]), axis=1)
df.sort_values(
by=[
'Category', 'Availability', 'Submitter', 'Unique ID (e.g. for Audit)'
Expand Down Expand Up @@ -209,6 +211,7 @@ def MakeUniqueID(x):
bg_format = writer.book.add_format({'bg_color': '#efefef'})
for ws in writer.book.worksheets():
ws.set_column(1, 1, None, None, {'hidden': 1})
ws.set_column(2, 2, None, None, {'hidden': 1})
ws.set_column(len(indices['closed']), 100, None, score_format)
ws.conditional_format(
2 + len(columns), 0, 200, 100, {
Expand Down
2 changes: 1 addition & 1 deletion tools/submission/submission-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ def log_result(submitter,
}
power_unit_dict = {
"SingleStream": "Joules",
"MultiStream": "Joules/Stream",
"MultiStream": "Joules",
"Offline": "Watts",
"Server": "Watts",
}
Expand Down

0 comments on commit 33894a1

Please sign in to comment.