From e0b93a70d3613cfefc156dc490227107c38de3e2 Mon Sep 17 00:00:00 2001 From: Jesusbill Date: Sun, 20 Jun 2021 20:58:36 +0200 Subject: [PATCH] black formatting --- .../blenderbim/bim/module/structural/operator.py | 15 +++------------ .../blenderbim/bim/module/structural/prop.py | 9 ++++----- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/structural/operator.py b/src/blenderbim/blenderbim/bim/module/structural/operator.py index e0502cd19c..619ec40d37 100644 --- a/src/blenderbim/blenderbim/bim/module/structural/operator.py +++ b/src/blenderbim/blenderbim/bim/module/structural/operator.py @@ -540,10 +540,7 @@ class AssignStructuralLoadCase(bpy.types.Operator): ifcopenshell.api.run( "aggregate.assign_object", self.file, - **{ - "relating_object": self.file.by_id(self.work_plan), - "product": self.file.by_id(self.load_case), - }, + **{"relating_object": self.file.by_id(self.work_plan), "product": self.file.by_id(self.load_case),}, ) Data.load(IfcStore.get_file()) return {"FINISHED"} @@ -560,10 +557,7 @@ class UnassignStructuralLoadCase(bpy.types.Operator): ifcopenshell.api.run( "aggregate.unassign_object", self.file, - **{ - "relating_object": self.file.by_id(self.work_plan), - "product": self.file.by_id(self.load_case), - }, + **{"relating_object": self.file.by_id(self.work_plan), "product": self.file.by_id(self.load_case),}, ) Data.load(IfcStore.get_file()) return {"FINISHED"} @@ -867,10 +861,7 @@ class EditStructuralLoad(bpy.types.Operator): ifcopenshell.api.run( "structural.edit_structural_load", self.file, - **{ - "structural_load": self.file.by_id(props.active_structural_load_id), - "attributes": attributes, - }, + **{"structural_load": self.file.by_id(props.active_structural_load_id), "attributes": attributes,}, ) Data.load(IfcStore.get_file()) bpy.ops.bim.load_structural_loads() diff --git a/src/blenderbim/blenderbim/bim/module/structural/prop.py b/src/blenderbim/blenderbim/bim/module/structural/prop.py index 7ae769c55d..f7c853e17c 100644 --- a/src/blenderbim/blenderbim/bim/module/structural/prop.py +++ b/src/blenderbim/blenderbim/bim/module/structural/prop.py @@ -145,12 +145,11 @@ class BIMStructuralProperties(PropertyGroup): # load_group_attributes: CollectionProperty(name="Load Group Attributes", type=Attribute) active_load_group_id: IntProperty(name="Active Load Group Id") applicable_structural_load_types: EnumProperty( - items=getApplicableStructuralLoadTypes, name="Applicable Structural Load Types", - update=updateApplicableStructuralLoadTypes - ) - applicable_structural_loads: EnumProperty( - items=getApplicableStructuralLoads, name="Applicable Structural Loads" + items=getApplicableStructuralLoadTypes, + name="Applicable Structural Load Types", + update=updateApplicableStructuralLoadTypes, ) + applicable_structural_loads: EnumProperty(items=getApplicableStructuralLoads, name="Applicable Structural Loads") load_group_activities: CollectionProperty(name="Load Group Activities", type=StructuralActivity) active_load_group_activity_index: IntProperty(name="Active Load Group Activity Index")