[bugfix] usage of unordered dict for comparison

implicit extraction of pdf names (auto, manu) for comparison from a list generated within dict iteration lead to possible flipping (auto - manu .or. manu - auto) of compared pdfs (and with that histograms)
This commit is contained in:
Marcel Paffrath 2017-09-21 10:33:47 +02:00
parent 92b12537eb
commit 3096ee4573

View File

@ -118,8 +118,8 @@ class Comparison(object):
"""
compare_pdfs = dict()
pdf_a = self.get(self.names[0]).generate_pdf_data(type)
pdf_b = self.get(self.names[1]).generate_pdf_data(type)
pdf_a = self.get('auto').generate_pdf_data(type)
pdf_b = self.get('manu').generate_pdf_data(type)
for station, phases in pdf_a.items():
if station in pdf_b.keys():