Skip to content

Commit

Permalink
make tool_type case insensitive. closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Feb 7, 2024
1 parent 02cc463 commit 345f7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion btl/serializers/fusionserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ def deserialize_library_from_file(self, filename):
)
# fill in the remaining properties based on the tool type
tool_type = toolitem["type"]
tool_type = tool_type.lower() if tool_type else tool_type
if tool_type in ("ball end mill", "flat end mill", "reamer", "boring bar", "counter bore", "lollipop mill"):
pass
if tool_type == "bull nose end mill":
elif tool_type == "bull nose end mill":
tool.shape.set_param(
"TorusRadius",
DistanceParam(name="TorusRadius", unit=lunit, v=geom["RE"]),
Expand Down

0 comments on commit 345f7cc

Please sign in to comment.