Skip to content

Commit

Permalink
sl total_height comes as float
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkafa committed Sep 9, 2024
1 parent 4cf0f53 commit db31e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcode_metadata/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit db31e3e

Please sign in to comment.