Skip to content

Commit

Permalink
Merge pull request #48 from luzpaz/typos
Browse files Browse the repository at this point in the history
fix: typos in source comments and docs
  • Loading branch information
knipknap authored Dec 24, 2024
2 parents a351192 + 997a6ff commit d2c27e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion btl/feeds/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def calculate(self, progress_cb=None, iterations=80):
(error_distance, error, params)
- error (str): An error message, if the result is invalid. None otherwse.
- error (str): An error message, if the result is invalid. None otherwise.
- params (dict): The list of params, as stored in .all_params.
"""
random.seed(1) # we don't want true randomness, rather reproducible results
Expand Down
2 changes: 1 addition & 1 deletion btl/serializers/fcserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def deserialize_tool(self, id):
tool = Tool(attrs['name'], shape, id=id, filename=filename)

# Load known attributes. Since the serialized file does not indicate
# param types, we need to explicitely load known non-str attributes.
# param types, we need to explicitly load known non-str attributes.
tool_attrs = attrs.get("attribute", {})
stickout = tool_attrs.pop('btl-stickout', None)
if stickout:
Expand Down
2 changes: 1 addition & 1 deletion btl/serializers/fusionserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# I.E.: chamfer mills & spot_drills
# Custom form tools, thread mills, and taps are not supported yet
# (thread mills can be single or multi-pitch, we would need to generate the
# shape files at runtime in order to suppport them properly)
# shape files at runtime in order to support them properly)
SHAPE_FILES = {
# milling
"ball end mill": "ball_end_mill",
Expand Down
2 changes: 1 addition & 1 deletion btl/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def get_inertia(self):
diameter = self.shape.get_diameter()
fluted_inertia = (math.pi * ((diameter*0.8) / 2)**4) / 4

# Moment of inertia equation for a SOLID round beam (shank partion of the end mill)
# Moment of inertia equation for a SOLID round beam (shank portion of the end mill)
# https://en.wikipedia.org/wiki/List_of_area_moments_of_inertia
shank_d = self.shape.get_shank_diameter()
if shank_d:
Expand Down

0 comments on commit d2c27e5

Please sign in to comment.