From ed3dfeccb8edb789a22e64143c74a88d151b284d Mon Sep 17 00:00:00 2001 From: Edoardo Pasca <14138589+paskino@users.noreply.github.com> Date: Mon, 8 Dec 2025 09:40:41 +0000 Subject: [PATCH] Convert scale and offset to string for JSON Closes #2030 Signed-off-by: Edoardo Pasca <14138589+paskino@users.noreply.github.com> --- Wrappers/Python/cil/io/TIFF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wrappers/Python/cil/io/TIFF.py b/Wrappers/Python/cil/io/TIFF.py index 5734b2f7b..a627c45fd 100644 --- a/Wrappers/Python/cil/io/TIFF.py +++ b/Wrappers/Python/cil/io/TIFF.py @@ -47,7 +47,7 @@ def save_scale_offset(fname, scale, offset): ''' dirname = os.path.dirname(fname) txt = os.path.join(dirname, 'scaleoffset.json') - d = {'scale': scale, 'offset': offset} + d = {'scale': str(scale), 'offset': str(offset)} utilities.save_dict_to_file(txt, d) class TIFFWriter(object):