Take into account seismograms too short for given cut times!

This commit is contained in:
Ludger Küperkoch 2019-06-17 17:26:23 +02:00
parent 0e65478645
commit d9777eaa05

View File

@ -158,6 +158,8 @@ class CharacteristicFunction(object):
zz = self.orig_data.copy()
z1 = zz[0].copy()
zz[0].data = z1.data[int(start):int(stop)]
if zz[0].stats.npts == 0: # cut times do not fit data length!
zz[0].data = z1.data # take entire data
data = zz
return data
elif len(self.orig_data) == 2: