Skip to content

Commit

Permalink
Merge pull request #892 from luzpaz/typos
Browse files Browse the repository at this point in the history
Fix various typos
  • Loading branch information
jdegenstein authored Feb 6, 2025
2 parents 72bbc43 + b14c187 commit 09311cb
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/algebra_definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ with :math:`B^3 \subset C^3, B^2 \subset C^2` and :math:`B^1 \subset C^1`
* This definition also includes that neither ``-`` nor ``&`` are commutative.


Locations, planes and location arithmentic
Locations, planes and location arithmetic
---------------------------------------------

**Set definitions:**
Expand Down
2 changes: 1 addition & 1 deletion docs/joints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ is found within a rod end as shown here:
:emphasize-lines: 40-44,51,53

Note how limits are defined during the instantiation of the ball joint when ensures that the pin or bolt
within the rod end does not interfer with the rod end itself. The ``connect_to`` sets the three angles
within the rod end does not interfere with the rod end itself. The ``connect_to`` sets the three angles
(only two are significant in this example).

.. autoclass:: BallJoint
Expand Down
2 changes: 1 addition & 1 deletion docs/key_concepts_algebra.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The generic forms of object placement are:
location * alg_compound
2. Placement on the ``plane`` and then moved relative to the ``plane`` by ``location``
(the location is relative to the local corrdinate system of the plane).
(the location is relative to the local coordinate system of the plane).

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion docs/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ reoriented, all ``BuildLine`` instances within the scope of ``BuildSketch`` shou
on the default ``Plane.XY``.

***************************************************************
Don't Builders inherit workplane/coordinate sytems when nested
Don't Builders inherit workplane/coordinate systems when nested
***************************************************************

Some users expect that nested Builders will inherit the workplane or coordinate system from
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial_design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ For solid or prismatic shapes, extrude the 2D profiles along the necessary axis.
also combine multiple extrusions by intersecting or unionizing them to form complex shapes.
Use the resulting geometry as sub-parts if needed.

*The next step in implmenting our design in build123d is to convert the above sketch into
*The next step in implementing our design in build123d is to convert the above sketch into
a part by extruding it as shown in this code:*

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion src/build123d/build_sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BuildSketch(Builder):
Note that all sketch construction is done within sketch_local on Plane.XY.
When objects are added to the sketch they must be coplanar to Plane.XY,
usually handled automatically but may need user input for Edges and Wires
since their construction plane isn't alway able to be determined.
since their construction plane isn't always able to be determined.
Args:
workplanes (Union[Face, Plane, Location], optional): objects converted to
Expand Down
2 changes: 1 addition & 1 deletion src/build123d/drafting.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _number_with_units(
"""Convert a raw number to a unit of measurement string based on the class settings"""

def simplify_fraction(numerator: int, denominator: int) -> tuple[int, int]:
"""Mathematically simplify a fraction given a numerator and demoninator"""
"""Mathematically simplify a fraction given a numerator and denominator"""
greatest_common_demoninator = gcd(numerator, denominator)
return (
int(numerator / greatest_common_demoninator),
Expand Down
2 changes: 1 addition & 1 deletion src/build123d/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def __init__(self, color_tuple: tuple[float]):

@overload
def __init__(self, color_code: int, alpha: int = 0xFF):
"""Color from a hexidecimal color code with an optional alpha value
"""Color from a hexadecimal color code with an optional alpha value
Args:
color_code (hexidecimal int): 0xRRGGBB
Expand Down
2 changes: 1 addition & 1 deletion src/build123d/mesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def get_meta_data(self) -> list[dict]:
return meta_data_contents

def get_meta_data_by_key(self, name_space: str, name: str) -> dict:
"""Retrive the metadata value and type for the provided name space and name"""
"""Retrieve the metadata value and type for the provided name space and name"""
meta_data_group = self.model.GetMetaDataGroup()
meta_data_contents = {}
meta_data = meta_data_group.GetMetaDataByKey(name_space, name)
Expand Down
2 changes: 1 addition & 1 deletion src/build123d/topology/one_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def split(self, tool: TrimmingTool, keep: Keep = Keep.TOP):
split_result = unwrap_topods_compound(split_result, True)

# For speed the user may just want all the objects which they
# can sort more efficiently then the generic algoritm below
# can sort more efficiently then the generic algorithm below
if keep == Keep.ALL:
return ShapeList(
self.__class__.cast(part)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_random_boxes(self):
test_boxes = [
Box(random.randint(1, 20), random.randint(1, 20), 1) for _ in range(50)
]
# Not raising in this call shows successfull non-overlap.
# Not raising in this call shows successful non-overlap.
packed = pack(test_boxes, 1)
self.assertEqual(
"bbox: 0.0 <= x <= 94.0, 0.0 <= y <= 86.0, -0.5 <= z <= 0.5",
Expand All @@ -54,7 +54,7 @@ def test_random_slots(self):
widths = [random.randint(2, 20) for _ in range(50)]
heights = [random.randint(1, width - 1) for width in widths]
inputs = [SlotOverall(width, height) for width, height in zip(widths, heights)]
# Not raising in this call shows successfull non-overlap.
# Not raising in this call shows successful non-overlap.
packed = pack(inputs, 1)
bb = (Sketch() + packed).bounding_box()
self.assertEqual(bb.min, Vector(0, 0, 0))
Expand Down
2 changes: 1 addition & 1 deletion tools/refactor_topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
desc:
This python script refactors the very large topology.py module into several
files based on the topological heirarchical order:
files based on the topological hierarchical order:
+ shape_core.py - base classes Shape, ShapeList
+ utils.py - utility classes & functions
+ zero_d.py - Vertex
Expand Down

0 comments on commit 09311cb

Please sign in to comment.