Debuged writephases: if first motion (fm) is None, ? is written to NLLoc-phase file.

This commit is contained in:
Ludger Küperkoch 2015-11-11 15:09:50 +01:00
parent 2ea2db0791
commit b5b7453214

View File

@ -963,6 +963,8 @@ def writephases(arrivals, fformat, filename):
for key in arrivals: for key in arrivals:
if arrivals[key]['P']['weight'] < 4: if arrivals[key]['P']['weight'] < 4:
fm = arrivals[key]['P']['fm'] fm = arrivals[key]['P']['fm']
if fm == None:
fm = '?'
onset = arrivals[key]['P']['mpp'] onset = arrivals[key]['P']['mpp']
year = onset.year year = onset.year
month = onset.month month = onset.month