[update] warn/do not save picks with unknown phase ID

This commit is contained in:
2018-01-15 14:17:14 +01:00
parent 4589f92a1a
commit b191bd8cf4
3 changed files with 30 additions and 32 deletions
+2
View File
@@ -1169,6 +1169,8 @@ def identifyPhase(phase):
# common phase suffix for P and S
common_P = ['P', 'p', 'R']
common_S = ['S', 's']
if phase is None:
return False
if phase[-1] in common_P:
return 'P'
if phase[-1] in common_S: