Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
If the parameter is a float **or an int** assign the parameter value. Otherwise parse it.
  • Loading branch information
djinnome authored Oct 1, 2024
1 parent 7a9b2e4 commit b5dee31
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 @@ -186,7 +186,7 @@ def parameter_to_mira(parameter, param_symbols=None) -> Parameter:
# We need to check for symbolic expressions in parameters
processed_distr_parameters = {}
for param_key, param_value in distr_json.get("parameters", {}).items():
if isinstance(param_value, float):
if isinstance(param_value, float) or isinstance(param_value, int):
processed_distr_parameters[param_key] = param_value
else:
processed_distr_parameters[param_key] = \
Expand Down

0 comments on commit b5dee31

Please sign in to comment.