Skip to content

Commit

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

0 comments on commit c5642ac

Please sign in to comment.