Reversed changes made in previous commit, initialize ObsPy-event object including path.

This commit is contained in:
Ludger Küperkoch
2017-08-17 12:31:42 +02:00
parent ea7b609091
commit 24ded1cf2b
3 changed files with 3 additions and 2 deletions

View File

@@ -201,6 +201,7 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even
filename = os.path.join(eventpath, 'PyLoT_' + evID + fext)
try:
data = Data(evtdata=filename)
data.get_evt_data().path = eventpath
print('Reading event data from filename {}...'.format(filename))
except Exception as e:
print('Could not read event from file {}: {}'.format(filename, e))