From c2c2047dcfbf372c31f8c78f5de85ba78b2265bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 28 Oct 2016 13:40:14 +0200 Subject: [PATCH] Fixed oversight: if automatic picks have been processed, picks of dictionary were not written to picks list. --- pylot/core/io/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index b4a56416..e82f8a61 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -6,7 +6,6 @@ import os from obspy import read_events from obspy.core import read, Stream, UTCDateTime from obspy.core.event import Event - from pylot.core.io.phases import readPILOTEvent, picks_from_picksdict, \ picksdict_from_pilot, merge_picks from pylot.core.util.errors import FormatError, OverwriteError @@ -300,7 +299,8 @@ class Data(object): # check for automatic picks for key in picks: if picks[key]['P']['picker'] == 'autoPyLoT': - print("Warning: Existing picks will be overwritten!") + print("Existing picks will be overwritten!") + picks = picks_from_picksdict(picks) break else: if self.get_evt_data().picks: