diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py index 621712e093..6c81234894 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py @@ -58,7 +58,11 @@ def add_stationing_referent( if on_basis_curve is None: on_basis_curve = True - curve = ifcopenshell.api.alignment.get_basis_curve(alignment) if on_basis_curve else ifcopenshell.api.alignment.get_curve(alignment) + curve = ( + ifcopenshell.api.alignment.get_basis_curve(alignment) + if on_basis_curve + else ifcopenshell.api.alignment.get_curve(alignment) + ) object_placement = None representation = None diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py index c13b7a725f..431d19fc86 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py @@ -18,7 +18,6 @@ import ifcopenshell import ifcopenshell.util.placement -import ifcopenshell.util.unit from ifcopenshell import entity_instance