Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,9 @@ iteration_*.md
orthoroute.log.*
orthoroute_debug.log
orthoroute_debug.log.*

# The tracked pytest suite lives in tests/. The rules above (test_*.py,
# tests/, tests/*) would otherwise ignore it, so re-include every .py under
# tests/ (test modules AND conftest.py, which holds the shared fixtures).
!tests/
!tests/*.py
10 changes: 8 additions & 2 deletions orthoroute/algorithms/manhattan/pad_escape_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ def precompute_all_pad_escapes(self, board, nets_to_route: List = None) -> Tuple
for comp in getattr(board, "components", []):
for pad in getattr(comp, "pads", []):
# Skip through-hole pads
drill = getattr(pad, 'drill', 0.0)
drill = getattr(pad, 'drill', None)
if drill is None:
# Domain Pad objects (file-parser path) name it drill_size
drill = getattr(pad, 'drill_size', None) or 0.0
if drill > 0:
continue

Expand Down Expand Up @@ -265,7 +268,10 @@ def precompute_all_pad_escapes(self, board, nets_to_route: List = None) -> Tuple

# Board-level pads
for pad in getattr(board, "pads", []):
drill = getattr(pad, 'drill', 0.0)
drill = getattr(pad, 'drill', None)
if drill is None:
# Domain Pad objects (file-parser path) name it drill_size
drill = getattr(pad, 'drill_size', None) or 0.0
if drill > 0:
continue

Expand Down
Loading