Skip to content

Conversation

@shapeseas
Copy link
Contributor

No description provided.

@shapeseas shapeseas merged commit 988839d into main Oct 30, 2023
@shapeseas shapeseas deleted the codeowners branch October 30, 2023 17:09
paco-barreras pushed a commit that referenced this pull request Oct 25, 2025
paco-barreras added a commit that referenced this pull request Nov 14, 2025
- Remove type hints from 5 functions (Principle #4)
- Remove dead code: unused imports (pdb, cm), unused functions, unused variables
- Fix broken reset_trajectory() cache nulling
- Optimize O(n) → O(1) building lookups using indexed .loc[] (7 locations)
- Remove defensive bloat: unnecessary .empty checks, hasattr checks
- Remove bounds clamping (agents always kept in bounds by geometry checks)
- Extract duplicate destination selection logic to helper function
- Update test expectations: KeyError instead of IndexError for missing buildings
- Add testing/environment notes to CODING_PRINCIPLES.md

Results: 1491 → 1477 lines (-14 lines), all 14 tests pass
Significant performance improvement from O(1) building lookups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants