From c1d435ccf87300ab4d93f35da966e96987d311eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0=C3=A1rka=20Faloutov=C3=A1?= <65911928+sarkafa@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:11:08 +0200 Subject: [PATCH] sl total_height comes as float (#50) --- gcode_metadata/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcode_metadata/metadata.py b/gcode_metadata/metadata.py index 78ffb80..5cfb892 100644 --- a/gcode_metadata/metadata.py +++ b/gcode_metadata/metadata.py @@ -511,7 +511,7 @@ def set_attr(self, name, value): MMUAttribute(separator=",", value_type=int, conversion=same_or_nothing), - } + } # These keys are primary defined by PrusaSlicer # Keys ending in "per tool" mean there is a list inside @@ -821,7 +821,7 @@ class SLMetaData(MetaData): "exposure_time": int, "exposure_time_first": int, "total_layers": int, - "total_height": int, + "total_height": float, # to unify with filament used [mm] rounded to 2 decimal places "resin_used_ml": lambda x: round(float(x), 2), "printer_model": str,