Skip to content

Error if max_wl is not an integer #3

@HishamEldardiry

Description

@HishamEldardiry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions