From 3e164fd0c6e73ea264cfcaa45885bbd96ff14542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Thu, 27 Aug 2015 14:24:52 +0200 Subject: [PATCH] restituteWFData: More output for user. --- pylot/core/read/data.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index 47a0fb1a..18e2cabd 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -146,8 +146,12 @@ class Data(object): self.wfdata = self.getOriginalWFData().copy() self.dirty = False - def restituteWFData(self, invdlpath): - st = self.getWFData() + def restituteWFData(self, invdlpath, streams=None): + if streams == None: + st = self.getWFData() + else: + st = streams + for tr in st: # remove underscores if tr.stats.station[3] == '_': @@ -164,7 +168,7 @@ class Data(object): print "Found dataless-SEED file(s)!" print "Reading meta data information ..." for j in range(len(dlfile)): - print dlfile[j] + print "Found dataless-SEED file %s" % dlfile[j] parser = Parser('%s' % dlfile[j]) for i in range(len(st)): # check, whether this trace has already been corrected @@ -192,7 +196,7 @@ class Data(object): print "Found inventory-xml file(s)!" print "Reading meta data information ..." for j in range(len(invfile)): - print invfile[j] + print "Found inventory-xml file %s" % invfile[j] inv = read_inventory(invfile[j], format="STATIONXML") for i in range(len(st)): # check, whether this trace has already been corrected @@ -220,7 +224,7 @@ class Data(object): print "Found response file(s)!" print "Reading meta data information ..." for j in range(len(respfile)): - print respfile[j] + print "Found RESP-file %s" % respfile[j] for i in range(len(st)): # check, whether this trace has already been corrected try: