Skip to content

Commit 6d4eb06

Browse files
committed
black .
1 parent 72f8218 commit 6d4eb06

File tree

9 files changed

+10
-15
lines changed

9 files changed

+10
-15
lines changed

nix/build-all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def build_dependency(
11781178
gmp_args.extend(("--disable-assembly", "--enable-cxx"))
11791179
mpfr_args.extend(("--host", "none"))
11801180
elif "x86" in arch:
1181-
gmp_args.append("--enable-fat") # See issues #7458 #7556
1181+
gmp_args.append("--enable-fat") # See issues #7458 #7556
11821182

11831183
OLD_CC = None
11841184
if MAC_CROSS_COMPILE_INTEL:

src/bonsai/bonsai/tool/system.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,20 @@ def create_empty_at_cursor_with_element_orientation(cls, element: ifcopenshell.e
112112
def create_port_at_cursor(cls, element: ifcopenshell.entity_instance) -> ifcopenshell.entity_instance:
113113
ifc_file = tool.Ifc.get()
114114
element_obj = tool.Ifc.get_object(element)
115-
115+
116116
port = ifcopenshell.api.system.add_port(ifc_file, element=element)
117117
port.FlowDirection = "NOTDEFINED"
118118
port.PredefinedType = "USERDEFINED"
119-
119+
120120
systems = ifcopenshell.util.system.get_element_systems(element)
121121
system = systems[0] if systems else None
122122
port.SystemType = getattr(system, "PredefinedType", None) or "USERDEFINED"
123-
123+
124124
matrix = element_obj.matrix_world.copy()
125125
matrix.translation = bpy.context.scene.cursor.matrix.translation
126-
126+
127127
ifcopenshell.api.geometry.edit_object_placement(ifc_file, product=port, matrix=matrix, is_si=True)
128-
128+
129129
return port
130130

131131
@classmethod
@@ -218,7 +218,7 @@ def load_ports(cls, element: ifcopenshell.entity_instance, ports: list[ifcopensh
218218
for collection in obj.users_collection:
219219
target_collection = collection
220220
break
221-
221+
222222
if target_collection:
223223
for port_obj in ifc_importer.added_data.values():
224224
if isinstance(port_obj, bpy.types.Object):

src/bonsai/test/core/test_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class TestAddPort:
153153
def test_run(self, ifc, system):
154154
system.get_ports("element").should_be_called().will_return(["port"])
155155
system.load_ports("element", ["port"]).should_be_called()
156-
#system.create_empty_at_cursor_with_element_orientation("element").should_be_called().will_return("obj")
157-
#system.run_root_assign_class(obj="obj", ifc_class="IfcDistributionPort", should_add_representation=False).should_be_called().will_return("port")
156+
# system.create_empty_at_cursor_with_element_orientation("element").should_be_called().will_return("obj")
157+
# system.run_root_assign_class(obj="obj", ifc_class="IfcDistributionPort", should_add_representation=False).should_be_called().will_return("port")
158158
system.create_port_at_cursor("element").should_be_called().will_return("port")
159159
system.load_ports("element", ["port"]).should_be_called()
160160
subject.add_port(ifc, system, element="element")

src/bonsai/test/tool/test_system.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_run(self):
103103
obj = subject.create_empty_at_cursor_with_element_orientation(element)
104104
assert obj.matrix_world == bpy.context.scene.cursor.matrix
105105

106+
106107
class TestCreatePortAtCursor(NewFile):
107108
def test_run(self):
108109
assert bpy.context.scene

src/ifc4d/ifc4d/ifc2p6.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import ifcopenshell.util.sequence
2626

2727

28-
2928
class Ifc2P6:
3029
def __init__(self):
3130
self.xml = None

src/ifcpatch/bootstrap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@
1515
#
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
18-
19-

src/ifcpatch/ifcpatch/recipes/FixArchiCADToRevitSpaces.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import logging
2020

2121

22-
2322
class Patcher:
2423
def __init__(self, file: None, logger: logging.Logger, filepath: str):
2524
"""Allow ArchiCAD IFC spaces to open as Revit rooms

src/ifcpatch/ifcpatch/recipes/FixRevitTINs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import logging
2121

2222

23-
2423
class Patcher:
2524
def __init__(self, file: None, logger: logging.Logger, filepath: str, is_solid: bool = True):
2625
"""Fix missing or spot-coordinate bugged TINs loading in Revit

src/ifctester/webapp/public/worker/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import ifcopenshell
32
import ifcopenshell.util.attribute
43
import ifcopenshell.util.pset

0 commit comments

Comments
 (0)