dest_type = param_entry["type"]
model_params[k] = dest_type(v)
// Parse string describing list correctly, eschewing `eval`
elif param_entry["type"] == list:
model_params[k] = model_params[k].replace("[", "").replace("]", "")\
.replace(" ", "")\
.split(",")
for i in range(len(model_params[k])):
After Change
else:
continue
except ValueError:
continue
else:
break
if type(model_params[k]) == str and str not in dest_types_list:
raise(ValueError("Model parameter cannot be cast to expected "