From b812d21282b39759ddb1abc0be6484e1cd88ef13 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 22 Jan 2025 17:17:31 +0500 Subject: [PATCH] Fix non-existent name argument in add_si_unit docs --- .../ifcopenshell/api/project/append_asset.py | 2 +- .../ifcopenshell/api/project/assign_declaration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py b/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py index ade4dbc41b..a85a4ee5a0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py @@ -86,7 +86,7 @@ def append_asset( # Assign units for our example library unit = ifcopenshell.api.unit.add_si_unit(library, - unit_type="LENGTHUNIT", name="METRE", prefix="MILLI") + unit_type="LENGTHUNIT", prefix="MILLI") ifcopenshell.api.unit.assign_unit(library, units=[unit]) # Let's create a single asset of a 200mm thick concrete wall diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py b/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py index ab8d97bea9..7333282746 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py @@ -65,7 +65,7 @@ def assign_declaration( # Assign units for our example library unit = ifcopenshell.api.unit.add_si_unit(library, - unit_type="LENGTHUNIT", name="METRE", prefix="MILLI") + unit_type="LENGTHUNIT", prefix="MILLI") ifcopenshell.api.unit.assign_unit(library, units=[unit]) # Let's create a single asset of a 200mm thick concrete wall