Skip to content

Commit

Permalink
fix estimated_print_time type (#45)
Browse files Browse the repository at this point in the history
* fix estimated_print_time type

* mend
  • Loading branch information
sarkafa authored Aug 27, 2024
1 parent 1adcc22 commit 5d605b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcode_metadata/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ class SLMetaData(MetaData):
# thumbnails!

Attrs = {
"estimated_print_time": int,
"estimated_print_time": float,
"layer_height": float,
"material": str,
"exposure_time": int,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def test_sl(self):
meta = get_metadata(fname, False)

assert meta.data == {
'estimated_print_time': 2722,
'estimated_print_time': 2722.16,
'exposure_time': 2,
'exposure_time_first': 25,
'layer_height': 0.05,
Expand Down

0 comments on commit 5d605b9

Please sign in to comment.