From 9e5b6673802d440f888aa5dee96a2460819d5a60 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 13 Aug 2025 10:37:31 +0500 Subject: [PATCH] black . --- .../api/alignment/_map_alignment_vertical_segment.py | 2 +- .../api/alignment/_update_curve_segment_transition_code.py | 2 +- .../api/alignment/get_curve_segment_transition_code.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/_map_alignment_vertical_segment.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/_map_alignment_vertical_segment.py index cbdae413da..5189231d4a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/_map_alignment_vertical_segment.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/_map_alignment_vertical_segment.py @@ -158,7 +158,7 @@ def _map_circular_arc(file: ifcopenshell.file, design_parameters: entity_instanc parent_curve = file.createIfcCircle( Position=file.createIfcAxis2Placement2D( - Location=file.createIfcCartesianPoint((0.0,0.0)), + Location=file.createIfcCartesianPoint((0.0, 0.0)), RefDirection=file.createIfcDirection((1.0, 0.0)), ), Radius=radius, diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/_update_curve_segment_transition_code.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/_update_curve_segment_transition_code.py index 4f1867dbf5..59154980dc 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/_update_curve_segment_transition_code.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/_update_curve_segment_transition_code.py @@ -30,4 +30,4 @@ def _update_curve_segment_transition_code(prev_segment: entity_instance, segment Updates IfcCurveSegment.Transition of prev_segment based on a comparison of the position, ref. direction, and curvature at the end of the prev_segment and the start of segment. """ - prev_segment.Transition = ifcopenshell.api.alignment.get_curve_segment_transition_code(prev_segment,segment) + prev_segment.Transition = ifcopenshell.api.alignment.get_curve_segment_transition_code(prev_segment, segment) diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/get_curve_segment_transition_code.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/get_curve_segment_transition_code.py index 37338c04eb..5a263d022f 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/get_curve_segment_transition_code.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/get_curve_segment_transition_code.py @@ -25,7 +25,9 @@ import numpy as np import math -def get_curve_segment_transition_code(prev_segment: entity_instance, segment: entity_instance, tolerance:float = 5.0e-4) -> str: +def get_curve_segment_transition_code( + prev_segment: entity_instance, segment: entity_instance, tolerance: float = 5.0e-4 +) -> str: """ Returns the IfcCurveSegment.Transition of prev_segment based on a comparison of the position, ref. direction, and curvature at the end of the prev_segment and the start of segment.