From 4b074fc79e6012e55c320d997e941f6990cd17c2 Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Thu, 23 Nov 2023 21:15:24 +0000 Subject: [PATCH] python api documentation fix --- src/ifcopenshell-python/ifcopenshell/util/placement.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/placement.py b/src/ifcopenshell-python/ifcopenshell/util/placement.py index b96287e7df..4f3d80cd35 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/placement.py +++ b/src/ifcopenshell-python/ifcopenshell/util/placement.py @@ -89,10 +89,10 @@ def get_local_placement(placement): .. code:: python - element = file.by_type("IfcBeam")[0] - matrix = ifcopenshell.util.placement.get_local_placement(element) + placement = file.by_type("IfcBeam")[0].ObjectPlacement + matrix = ifcopenshell.util.placement.get_local_placement(placement) - :param placement: The IfcLocalPlacement enitity + :param placement: The IfcLocalPlacement entity :type placement: ifcopenshell.entity_instance.entity_instance :return: A 4x4 numpy matrix :rtype: np.array[np.array[float]]