Avoid IOerror, relaxed to warning message to keep PyLoT running.

This commit is contained in:
Ludger Küperkoch 2020-07-28 17:16:48 +02:00
parent df6a6c1c71
commit 8066bd2f01

View File

@ -526,7 +526,9 @@ def calcsourcespec(wfstream, onset, vp, delta, azimuth, incidence,
zdat = select_for_phase(wfstream, "P") zdat = select_for_phase(wfstream, "P")
if len(zdat) == 0: if len(zdat) == 0:
raise IOError('No vertical component found in stream:\n{}'.format(wfstream)) print("No vertical component found in stream:\n{}".format(wfstream))
print("No calculation of source spectrum possible!")
return w0, Fc
dt = zdat[0].stats.delta dt = zdat[0].stats.delta