I used these lines to detect if duplicated parameters are included:
# Make sure there are no duplicate parameters -------------------------------
if len(soil_data["Name"]) is not len(set(soil_data["Name"])):
raise ValueError(
"Improve this line. Parameter repeated several times in input soil parameter file"
)
However, I think this should be improved because an error will be raised in the case of including more parameters (even if these are not duplicated)
I used these lines to detect if duplicated parameters are included:
However, I think this should be improved because an error will be raised in the case of including more parameters (even if these are not duplicated)