From 31207775bbb18af8dd1a4fbfb8e79aca29fcb900 Mon Sep 17 00:00:00 2001 From: Jeremy Zucker Date: Tue, 1 Oct 2024 15:26:08 -0700 Subject: [PATCH] Update util.py coercing `param_value` `int` to `float` allows unit tests to pass on the pyciemss side. --- mira/sources/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mira/sources/util.py b/mira/sources/util.py index fa780243..a8cc66ca 100644 --- a/mira/sources/util.py +++ b/mira/sources/util.py @@ -187,7 +187,7 @@ def parameter_to_mira(parameter, param_symbols=None) -> Parameter: processed_distr_parameters = {} for param_key, param_value in distr_json.get("parameters", {}).items(): if isinstance(param_value, float) or isinstance(param_value, int): - processed_distr_parameters[param_key] = param_value + processed_distr_parameters[param_key] = float(param_value) elif isinstance(param_value, str): processed_distr_parameters[param_key] = \ safe_parse_expr(param_value)