@ -132,7 +132,9 @@ def findZerochainage(chainage0, elevation0, max_beach_slope=5, min_beach_slope=5
else:
#find the slope between the last two points
try:
np.seterr(all='ignore')
beachslope = 1/((elevation0[-2] - elevation0[-1])/(chainage0[-1] - chainage0[-2]))
np.seterr(all=None)
except ZeroDivisionError:
beachslope= 999
if beachslope>min_beach_slope: