Skip to content

Commit

Permalink
Fix minor bug, allow scrollable tables iin results pages
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Aug 7, 2024
1 parent a419cc1 commit ea7e619
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/minifollowups/pycbc_page_coincinfo
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ statmapfile = d
# table. Each entry in data corresponds to each row in the final table and
# should be a list of values. So data is will be a list of lists.
data = []
row_labels = list(files.keys())
row_labels = []
rank_method = pystat.get_statistic_from_opts(args, list(files.keys()))

for ifo in files.keys():
Expand All @@ -166,6 +166,7 @@ for ifo in files.keys():
if (statmapfile['%s/time' % ifo][n] == -1.0):
continue

row_labels.append(ifo)
d = files[ifo]
i = idx[ifo]
tid = d['template_id'][i]
Expand Down
14 changes: 14 additions & 0 deletions pycbc/results/static/css/pycbc/orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,17 @@ font-size:16px;
a {
color:#000000;
}

table {
display: block;
overflow-x: auto;
white-space: nowrap;
}

td {
text-align: center;
}

th {
text-align: center;
}

0 comments on commit ea7e619

Please sign in to comment.