Apply black formatting to fix CI lint-formatting drift

20 files had fallen out of sync with the project's black version;
running `black .` brings them back in line with no logic changes.
This commit is contained in:
Stephen Boddy
2026-07-10 20:42:18 +01:00
parent 206cd6bbe1
commit 216092150a
20 changed files with 95 additions and 101 deletions
@@ -87,9 +87,7 @@ def create(
_create_geometric_representation(file, alignment)
referent_name = ifcopenshell.util.alignment.station_as_string(file, start_station)
referent = ifcopenshell.api.alignment.add_stationing_referent(
file, referent_name, alignment, 0.0, start_station
)
referent = ifcopenshell.api.alignment.add_stationing_referent(file, referent_name, alignment, 0.0, start_station)
for layout in alignment_layouts:
_add_zero_length_segment(file, layout)
@@ -73,7 +73,10 @@ def distance_along_from_station(file: ifcopenshell.file, alignment: entity_insta
return station - start_station
stations = [
(_distance_along_of_referent(referent), ifcopenshell.util.element.get_pset(referent, name="Pset_Stationing", prop="Station"))
(
_distance_along_of_referent(referent),
ifcopenshell.util.element.get_pset(referent, name="Pset_Stationing", prop="Station"),
)
for referent in referent_nest.RelatedObjects
]
stations.sort(key=lambda entry: entry[0])
@@ -36,12 +36,11 @@ def update_fallback_position(file: ifcopenshell.file, lp: entity_instance):
p = ifcopenshell.util.placement.get_local_placement(lp)
unit_scale = ifcopenshell.util.unit.calculate_unit_scale(file)
x = float(p[0, 3])*unit_scale
y = float(p[1, 3])*unit_scale
z = float(p[2, 3])*unit_scale
x = float(p[0, 3]) * unit_scale
y = float(p[1, 3]) * unit_scale
z = float(p[2, 3]) * unit_scale
rx = float(p[0, 0])
ry = float(p[1, 0])