[bugfix] wrong variable used during calculating length of waveform

This commit is contained in:
Darius Arnold 2018-05-29 23:51:09 +02:00
parent b0749e0ddc
commit 629bae63e2

View File

@ -405,7 +405,7 @@ class AutopickStation(object):
except AttributeError as ae:
print(ae)
else:
Lc = self.p_params.pstop - self.p_params.pstop
Lc = self.p_params.pstop - self.p_params.pstart
Lwf = self.ztrace.stats.endtime - self.ztrace.stats.starttime
if Lwf < 0:
print('autopickstation: empty trace! Return!')