If in invalid parameter is passed to the model, an exception is raised as expected, but the invalid parameter still gets added to the parameter list. As a result, subsequent attempts to set parameters always fail as the entire saved parameter list is checked each time.
Possible solution: check the validity of newly passed parameters only (both via load_input_file() and set_parameters()) and do not set any parameters if any are invalid. Update the exception message to be clear that no parameters were set.
If in invalid parameter is passed to the model, an exception is raised as expected, but the invalid parameter still gets added to the parameter list. As a result, subsequent attempts to set parameters always fail as the entire saved parameter list is checked each time.
Possible solution: check the validity of newly passed parameters only (both via load_input_file() and set_parameters()) and do not set any parameters if any are invalid. Update the exception message to be clear that no parameters were set.