Skip to content

Commit

Permalink
format and Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
obucklin committed Jan 25, 2024
1 parent 5064920 commit cd43bb0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/compas_timber/ghpython/components/CT_Assembly/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def get_joints_from_rules(self, beams, rules, topologies):
rules = [r for r in rules if r is not None]

joints = []
info = []
# rules have to be resolved into joint definitions
topo_rules = {}
cat_rules = []
Expand Down Expand Up @@ -67,8 +66,11 @@ def get_joints_from_rules(self, beams, rules, topologies):
continue
if rule.joint_type.SUPPORTED_TOPOLOGY != detected_topo:
msg = "Conflict detected! Beams: {}, {} meet with topology: {} but rule assigns: {}"
self.AddRuntimeMessage(Warning,
msg.format(beam_a.key, beam_b.key, JointTopology.get_name(detected_topo), rule.joint_type.__name__)
self.AddRuntimeMessage(
Warning,
msg.format(
beam_a.key, beam_b.key, JointTopology.get_name(detected_topo), rule.joint_type.__name__
),
)
continue
# sort by category to allow beam role by order (main beam first, cross beam second)
Expand Down

0 comments on commit cd43bb0

Please sign in to comment.