[adresses #195] comparison dictionaries can now be compiled from QuakeML files

This commit is contained in:
2016-03-31 14:29:29 +02:00
parent 5fcaddb028
commit a475b366d4
2 changed files with 21 additions and 3 deletions

View File

@@ -49,4 +49,13 @@ def compare_picksets(a, b):
compare_pdfs = dict()
return compare_pdfs
for station, phases in pdf_a.items():
if station in pdf_b.keys():
compare_pdf = dict()
for phase in phases:
if phase in pdf_b[station].keys():
compare_pdf[phase] = phases[phase] - pdf_b[station][phase]
if compare_pdf is not None:
compare_pdfs[station] = compare_pdf
return compare_pdfs