diff --git a/PyLoT.py b/PyLoT.py old mode 100644 new mode 100755 diff --git a/pylot/core/pick/picker.py b/pylot/core/pick/picker.py index 87000468..baf36653 100644 --- a/pylot/core/pick/picker.py +++ b/pylot/core/pick/picker.py @@ -251,8 +251,8 @@ class AICPicker(AutoPicker): except IndexError: print("Slope Calculation: empty array islope, check signal window") return - if len(dataslope) < 1: - print('No data in slope window found!') + if len(dataslope) <= 1: + print('No or not enough data in slope window found!') return imaxs, = argrelmax(dataslope) if imaxs.size: