Changesets · Branches · Tags · Compare
| Changeset | 9a910c4bbb389697513fd96ef606f1a8d5c4d93642e4e46a18d8022273fa8e9c |
|---|---|
| Author | Chinmay Talegaonkar <talchi@amazon.com> · 2025-08-29 13:55 -07:00 |
| Committer | Chinmay Talegaonkar <talchi@amazon.com> · 2025-08-29 13:55 -07:00 |
| Parents | 80ede874d22c |
1 file changed
modified eval.py +2 −2
| @@ -178,7 +178,7 @@ | ||
| 178 | 178 | |
| 179 | 179 | |
| 180 | 180 | def is_valid_dw(entity: Door | Window, wall_id_lookup: Dict[int, Wall]): |
| 181 | - attach_wall = wall_id_lookup.get(entity.id, None) | |
| 181 | + attach_wall = wall_id_lookup.get(entity.wall_id, None) | |
| 182 | 182 | if attach_wall is None: |
| 183 | 183 | return False |
| 184 | 184 | return is_valid_wall(attach_wall) |
| @@ -197,7 +197,7 @@ | ||
| 197 | 197 | ] |
| 198 | 198 | ) |
| 199 | 199 | elif isinstance(entity, (Door, Window)): |
| 200 | - attach_wall = wall_id_lookup.get(entity.id, None) | |
| 200 | + attach_wall = wall_id_lookup.get(entity.wall_id, None) | |
| 201 | 201 | if attach_wall is None: |
| 202 | 202 | log.error(f"{entity} attach wall is None") |
| 203 | 203 | return |