Skip to content

Commit

Permalink
Write meterToMillimeter as camelcase
Browse files Browse the repository at this point in the history
CURA-10561
  • Loading branch information
casperlamboo committed Oct 30, 2023
1 parent c68a4b1 commit 4f649e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/MakerbotWriter/MakerbotWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _getMeta(self, root_nodes: List[SceneNode]) -> Dict[str, any]:
meta["commanded_duration_s"] = int(print_information.currentPrintTime)
meta["duration_s"] = int(print_information.currentPrintTime)

material_lengths = list(map(meter_to_millimeter, print_information.materialLengths))
material_lengths = list(map(meterToMillimeter, print_information.materialLengths))
meta["extrusion_distance_mm"] = material_lengths[0]
meta["extrusion_distances_mm"] = material_lengths

Expand Down Expand Up @@ -273,6 +273,6 @@ def _getMeta(self, root_nodes: List[SceneNode]) -> Dict[str, any]:
return meta


def meter_to_millimeter(value: float) -> float:
def meterToMillimeter(value: float) -> float:
"""Converts a value in meters to millimeters."""
return value * 1000.0

0 comments on commit 4f649e5

Please sign in to comment.