Elffuss BraidHub

kikocis/SpatialLM public

Merge pull request #88 from chinmay0301ucsd/ct/fixes

using entity.wall_id instead of entity.id for wall lookup
Changeset656e8eb083512753838388d4885dc585ff74ecb026557b51d8f714b30c4515ab
AuthorYongsen Mao <36813656+SamMaoYS@users.noreply.github.com> · 2025-09-01 00:17 +08:00
CommitterGitHub <noreply@github.com> · 2025-09-01 00:17 +08:00
Parents80ede874d22c, 9a910c4bbb38

Browse the files at this changeset

1 file changed

modified eval.py +2 −2
@@ -178,7 +178,7 @@
178178
179179
180180 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)
182182 if attach_wall is None:
183183 return False
184184 return is_valid_wall(attach_wall)
@@ -197,7 +197,7 @@
197197 ]
198198 )
199199 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)
201201 if attach_wall is None:
202202 log.error(f"{entity} attach wall is None")
203203 return