In the curve_preDEM function, the max_wl value is used to calculate the curve_ext variable, which is subsequently passed as an argument to the range() function in the loop. Since max_wl could potentially be a float, the curve_ext variable would produce an error when executing the loop.
Suggested Solution:
Option 1: Ensure that the user is informed via the README file that the input file should contain max_wl as an integer value.
Option 2: For cases where max_wl is a floating-point number, consider modifying the curve_preDEM function to take the ceiling of the float value, ensuring compatibility with the range() function.
In the
curve_preDEMfunction, themax_wlvalue is used to calculate thecurve_extvariable, which is subsequently passed as an argument to therange()function in the loop. Sincemax_wlcould potentially be a float, thecurve_extvariable would produce an error when executing the loop.Suggested Solution:
Option 1: Ensure that the user is informed via the README file that the input file should contain
max_wlas an integer value.Option 2: For cases where
max_wlis a floating-point number, consider modifying thecurve_preDEMfunction to take the ceiling of the float value, ensuring compatibility with therange()function.