From dac80fea962f8c21462988f06fc3f32268ccaa63 Mon Sep 17 00:00:00 2001 From: Robin Sloan Date: Sun, 17 Oct 2021 10:38:40 -0700 Subject: [PATCH] found one more missing str conversion --- pydiffvg/save_svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydiffvg/save_svg.py b/pydiffvg/save_svg.py index 55ae189..486a4e0 100644 --- a/pydiffvg/save_svg.py +++ b/pydiffvg/save_svg.py @@ -60,7 +60,7 @@ def save_svg(filename, width, height, shapes, shape_groups, use_gamma = False): stop_colors = lg.stop_colors.data.cpu().numpy() for j in range(offsets.shape[0]): stop = etree.SubElement(color, 'stop') - stop.set('offset', offsets[j]) + stop.set('offset', str(offsets[j])) c = lg.stop_colors[j, :] stop.set('stop-color', 'rgb({}, {}, {})'.format(\ int(255 * c[0]), int(255 * c[1]), int(255 * c[2])))