Skip to content

Commit 6302830

Browse files
Benedikt Volkelchiarazampolli
authored andcommitted
Fix sorting histograms for RelVal comparison
1 parent 1136ae3 commit 6302830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RelVal/o2dpg_release_validation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,10 @@ def plot_compare_summaries(summaries, fields, out_dir, *, labels=None):
568568
# now fill the correct values of the fields for the histograms in common
569569
for map_index, test_histo_value_map in enumerate(test_histo_value_maps):
570570
this_map = test_histo_value_map[test_name]
571-
for i, histo_name in enumerate(this_map["histograms"]):
572-
if histo_name in histogram_names_intersection:
573-
for f in fields:
574-
values[f][map_index].append(this_map[f][i])
571+
for histo_name in histogram_names_intersection:
572+
i = this_map["histograms"].index(histo_name)
573+
for f in fields:
574+
values[f][map_index].append(this_map[f][i])
575575

576576
# now plot
577577
figure, ax = plt.subplots(figsize=(20, 20))

0 commit comments

Comments
 (0)