[Bugfix] it was not sure that enough waveform remains for processing after cutting with improper cut times
This commit is contained in:
parent
34508fc4a3
commit
b607da7262
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user