Changesets · Branches · Tags · Compare
| Changeset | 656e8eb083512753838388d4885dc585ff74ecb026557b51d8f714b30c4515ab |
|---|---|
| Author | Yongsen Mao <36813656+SamMaoYS@users.noreply.github.com> · 2025-09-01 00:17 +08:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-01 00:17 +08:00 |
| Parents | 80ede874d22c, 9a910c4bbb38 |
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 |