Skip to content

Commit bc35d76

Browse files
lachlangroseclaude
andcommitted
merge: bring the fix of #427 (read frame members from features) into feat/003-fault-evaluation-performance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XADRvHhG72666JkYNHtzUx
2 parents f27251e + eb8396d commit bc35d76

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎LoopStructural/utils/_fault_block.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,8 @@ def _cutters(fault: object) -> list:
157157
found = []
158158
builder = getattr(fault, "builder", None)
159159
sources = [getattr(b, "faults", None) or [] for b in getattr(builder, "builders", None) or []]
160-
try:
161-
sources += [getattr(fault[i], "faults", None) or [] for i in range(3)]
162-
except (IndexError, KeyError, TypeError):
163-
pass
160+
# The frame members (a StructuralFrame keeps them in ``features``).
161+
sources += [getattr(m, "faults", None) or [] for m in getattr(fault, "features", None) or []]
164162
for source in sources:
165163
for cutter in source:
166164
if not is_in(cutter, found):

0 commit comments

Comments
 (0)