[Bugfix] it was not sure that enough waveform remains for processing after cutting with improper cut times

This commit is contained in:
Ludger Küperkoch 2018-06-25 10:30:36 +02:00
parent 34508fc4a3
commit b607da7262

View File

@ -333,7 +333,7 @@ def autopickstation(wfstream, pickparam, verbose=False,
return return
Ldiff = Lwf - abs(Lc) Ldiff = Lwf - abs(Lc)
if Ldiff < 0 or pstop <= pstart: if Ldiff <= 0 or pstop <= pstart or pstop - pstart <= thosmw:
msg = 'autopickstation: Cutting times are too large for actual ' \ msg = 'autopickstation: Cutting times are too large for actual ' \
'waveform!\nUsing entire waveform instead!' 'waveform!\nUsing entire waveform instead!'
if verbose: print(msg) if verbose: print(msg)