From 44d9d6c8557f52230ef1de001037f363399bc908 Mon Sep 17 00:00:00 2001 From: Vincent Fazio Date: Tue, 27 Aug 2024 13:49:58 +0800 Subject: [PATCH] Fix Issue#4: Json config float error --- scripts/lib/config_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/config_builder.py b/scripts/lib/config_builder.py index e694953..01efb37 100644 --- a/scripts/lib/config_builder.py +++ b/scripts/lib/config_builder.py @@ -276,8 +276,8 @@ def add_vol_config(self, gs_dict, geom_obj, style_obj, meta_obj): 'dataDims': geom_obj.vol_sz, 'origin': geom_obj.vol_origin, 'size': geom_obj.get_vol_side_lengths(), - 'maxVal': geom_obj.get_max_data(), - 'minVal': geom_obj.get_min_data(), + 'maxVal': float(geom_obj.get_max_data()), + 'minVal': float(geom_obj.get_min_data()), 'rotation': geom_obj.get_rotation()} if style_obj.get_colour_table(): modelconf_dict['volumeData']['colourLookup'] = style_obj.get_colour_table()