Skip to content

Commit

Permalink
Different first layer height update
Browse files Browse the repository at this point in the history
This update fixes the accounting of the layers when the first layer has different layer height than the following.
  • Loading branch information
ThomasToka authored Mar 15, 2024
1 parent da9a4d0 commit 35f7419
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions E3S1PROFORKBYTT_printdata_cura_v5_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ def execute(self, data):
filament_used_g = math.ceil(volume_cm3 * density) if volume_cm3 * density > 0 else 0 # Total filament used in grams
elif line.startswith(";Layer height:"):
layer_height_value = round(float(line.split(":")[1].strip()), 2)
elif line.startswith(";MAXZ:"):
maxz_value = round(float(line.split(":")[1].strip()), 2)
layers = int(maxz_value / layer_height_value)
elif line.startswith(";LAYER_COUNT:"):
layers = int(line.split(":")[1])
elif line.startswith(";TIME:") and total_time == -1:
total_time = self.getTimeValue(line)

Expand Down

0 comments on commit 35f7419

Please sign in to comment.