[Bugfix] get_evt_data().path no more existent.

This commit is contained in:
Ludger Küperkoch 2017-08-16 10:43:05 +02:00
parent c6fa6d8ff8
commit e3f758fa63

View File

@ -226,12 +226,10 @@ class Data(object):
# try exporting event via ObsPy # try exporting event via ObsPy
else: else:
print(self.get_evt_data())
evtdata_org = self.get_evt_data() evtdata_org = self.get_evt_data()
eventpath = evtdata_org.path
picks = evtdata_org.picks picks = evtdata_org.picks
picks_copy = copy.deepcopy(picks) picks_copy = copy.deepcopy(picks)
evtdata_copy = Event(eventpath) evtdata_copy = Event(fnout)
evtdata_copy.picks = picks_copy evtdata_copy.picks = picks_copy
# check for stations picked automatically as well as manually # check for stations picked automatically as well as manually