Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
Added param_key and type of the param_value in the ValueError message
  • Loading branch information
djinnome authored Oct 2, 2024
1 parent 3120777 commit b78faf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mira/sources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def parameter_to_mira(parameter, param_symbols=None) -> Parameter:
processed_distr_parameters[param_key] = \
safe_parse_expr(param_value)
else:
raise ValueError(f"{param_value} is neither a float, int, or str")
raise ValueError(f"Parameter {param_key} of type {type(param_value)} has value {param_value} that is neither a float, int, or str")
distr = Distribution(
type=distr_type,
parameters=processed_distr_parameters,
Expand Down

0 comments on commit b78faf4

Please sign in to comment.