diff options
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index 4c3f0da3..f511cb4a 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -42,10 +42,16 @@ def apply_sampler(p, x, xs): def format_value_add_label(p, opt, x):
+ if type(x) == float:
+ x = round(x, 8)
+
return f"{opt.label}: {x}"
def format_value(p, opt, x):
+ if type(x) == float:
+ x = round(x, 8)
+
return x
def do_nothing(p, x, xs):
|