From b5b74532141a2289881ef30ea34996a0e38ad38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 11 Nov 2015 15:09:50 +0100 Subject: [PATCH] Debuged writephases: if first motion (fm) is None, ? is written to NLLoc-phase file. --- pylot/core/pick/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 916847da..9887c78d 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -963,6 +963,8 @@ def writephases(arrivals, fformat, filename): for key in arrivals: if arrivals[key]['P']['weight'] < 4: fm = arrivals[key]['P']['fm'] + if fm == None: + fm = '?' onset = arrivals[key]['P']['mpp'] year = onset.year month = onset.month