From b0acee71367a34b744a5fcb60f81aac35243d813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 2 Jun 2015 13:46:10 +0200 Subject: [PATCH] Added component splitting also for channels 1 and 2. --- pylot/core/pick/run_autopicking.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pylot/core/pick/run_autopicking.py b/pylot/core/pick/run_autopicking.py index ea54490a..b8c9389b 100755 --- a/pylot/core/pick/run_autopicking.py +++ b/pylot/core/pick/run_autopicking.py @@ -17,6 +17,7 @@ from pylot.core.pick.Picker import * from pylot.core.pick.CharFuns import * from pylot.core.pick import utils + def run_autopicking(wfstream, pickparam): ''' @@ -83,7 +84,11 @@ def run_autopicking(wfstream, pickparam): # split components zdat = wfstream.select(component="Z") edat = wfstream.select(component="E") + if len(edat) == 0: #check for other components + edat = wfstream.select(component="2") ndat = wfstream.select(component="N") + if len(ndat) == 0: #check for other components + ndat = wfstream.select(component="1") if algoP == 'HOS' or algoP == 'ARZ' and zdat is not None: print '##########################################'