Skip to content

Commit 760ccae

Browse files
author
AdrianoDee
committed
Fix naming for Data RelVals
1 parent 08954db commit 760ccae

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

Utilities/RelMon/python/directories2html.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,6 @@ def make_summary_table(indir,aggregation_rules,aggregation_rules_twiki, hashing_
828828
page_html+=make_categories_summary(dir_dict,aggregation_rules)
829829

830830
# Make the Directories chart
831-
# page_html+='<div class="span-24"><h2 class="alt"><a name="detailed_barchart">Detailed Barchart</a></h2></div>'
832831
page_html+='<div id="dir_chart"></div> <a href="#top">Top...</a><hr>'
833832

834833
# Barbarian vertical space. Suggestions are welcome
@@ -839,9 +838,6 @@ def make_summary_table(indir,aggregation_rules,aggregation_rules_twiki, hashing_
839838
# Prepare the table
840839
page_html+='<div class="span-24"><h2 class="alt"><a name="summary_table">Summary Table</a></h2> <h4> <span class="alt"> (scrollable) </span> </h4> </div>'
841840

842-
# for i in range(5):
843-
# page_html+='<div class="span-24"><p></p></div>\n'
844-
845841
div_width= min(len(dir_dict.keys()) * 70 + 500,1500) #80 px per column + 200 for the first column
846842
page_html+='<div class="wrapper" style = "width: %dpx;">'%(div_width)
847843
page_html+="""
@@ -857,17 +853,14 @@ def make_summary_table(indir,aggregation_rules,aggregation_rules_twiki, hashing_
857853

858854
sorted_samples=sorted(dir_dict.keys())
859855
for sample in sorted_samples:
860-
if "_" in sample:
856+
if "_" in sample and "Data" not in sample:
861857
sample_nick="_".join(sample.split("X_")[0].split("_")[:-1])
862-
#slightly cleaner: _X is for the GT string, the _ split take away the 123X
858+
# Cleaning for MC: just the fragment
859+
elif "Data" in sample and "RelVal" in sample:
860+
sample_nick = "".join([sample.split("_")[0],sample.split("RelVal")[-1]])
861+
# Cleaning for Data: PD + Era + Run
863862
else:
864863
sample_nick = sample
865-
## For runs: put only the number after the _
866-
#if "_" in sample:
867-
#run_number=sample.split("_")[-1]
868-
#if (not run_number.isalpha()) and len(run_number)>=6:
869-
#sample_nick=run_number
870-
871864

872865
page_html+="""
873866
<th> <p class = "vertical_head center_head">%s</th></p>"""%sample_nick

0 commit comments

Comments
 (0)