Skip to content

Commit

Permalink
Remove borders betwen step N values
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Jan 10, 2025
1 parent 13d2f11 commit 07bbdec
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions comparisons/compare-maxmem-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def wffn(w):
"<head><style>"
+ "table, th, td {border: 1px solid black;}</style>"
+ "<style> th, td {padding: 15px;}</style>"
+ "<style> tr:hover {background-color: yellow}</style>"
+ "<style> tr:hover {background-color: #eff3ff}</style>"
+ "<style> .noborder {}</style>"
+ "</head>",
"<body><h3>Summary of Maxmem Profiler Comparisons</h3><table>",
Expand Down Expand Up @@ -179,7 +179,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style: hidden;">',
"{:,.2f}".format(workflows[workflow][step]["max memory pr"]),
"</td>",
]
Expand All @@ -191,7 +191,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["max memory base"]),
"</td>",
]
Expand All @@ -203,7 +203,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["max memory adiff"]),
"</td>",
]
Expand All @@ -220,7 +220,7 @@ def stepfn(step):
error_threshold = workflows[workflow][step].get("error_threshold")
if not error_threshold:
error_threshold = 10.0
cellString = "<td "
cellString = '<td style="border-top-style:hidden" '
color = ""
if abs(workflows[workflow][step]["max memory pdiff"]) > MAXMEM_WARN_THRESHOLD:
color = 'bgcolor="orange"'
Expand All @@ -245,7 +245,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["req memory pr"]),
"</td>",
]
Expand All @@ -257,7 +257,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["req memory base"]),
"</td>",
]
Expand All @@ -269,7 +269,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["req memory adiff"]),
"</td>",
]
Expand All @@ -281,7 +281,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-top-style:hidden;">',
"{:,.3f}".format(workflows[workflow][step]["req memory pdiff"]),
"%</td>",
]
Expand All @@ -295,7 +295,7 @@ def stepfn(step):
summaryLine += ['<tr><td style="border-bottom-style:hidden;">&lt;pull request &gt;</td>']
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;">',
"{:,}".format(workflows[workflow][step]["nallocated pr"]),
"</td>",
]
Expand All @@ -307,7 +307,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,}".format(workflows[workflow][step]["nallocated base"]),
"</td>",
]
Expand All @@ -319,7 +319,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,}".format(workflows[workflow][step]["nallocated adiff"]),
"</td>",
]
Expand All @@ -331,7 +331,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-top-style:hidden;">',
"{:,.3f}".format(workflows[workflow][step]["nallocated pdiff"]),
"%</td>",
]
Expand All @@ -344,7 +344,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["leak memory pr"]),
"</td>",
]
Expand All @@ -356,7 +356,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["leak memory base"]),
"</td>",
]
Expand All @@ -368,7 +368,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,.2f}".format(workflows[workflow][step]["leak memory adiff"]),
"</td>",
]
Expand All @@ -380,7 +380,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-top-style:hidden;">',
"{:,.3f}".format(workflows[workflow][step]["leak memory pdiff"]),
"%</td>",
]
Expand All @@ -393,7 +393,7 @@ def stepfn(step):
summaryLine += ['<tr><td style="border-bottom-style:hidden;">&lt;pull request &gt;</td>']
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;">',
"{:,}".format(workflows[workflow][step]["nallocated pr"]),
"</td>",
]
Expand All @@ -405,7 +405,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,}".format(workflows[workflow][step]["nallocated base"]),
"</td>",
]
Expand All @@ -417,7 +417,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-bottom-style:hidden;border-top-style:hidden;">',
"{:,}".format(workflows[workflow][step]["nallocated adiff"]),
"</td>",
]
Expand All @@ -429,7 +429,7 @@ def stepfn(step):
]
for step in sorted(workflows[workflow].keys(), key=stepfn):
summaryLine += [
"<td>",
'<td style="border-top-style:hidden;">',
"{:,.3f}".format(workflows[workflow][step]["nallocated pdiff"]),
"%</td>",
]
Expand Down

0 comments on commit 07bbdec

Please sign in to comment.