Elffuss BraidHub

kikocis/SpatialLM public

using entity.wall_id instead of entity.id for wall lookup
Changeset9a910c4bbb389697513fd96ef606f1a8d5c4d93642e4e46a18d8022273fa8e9c
AuthorChinmay Talegaonkar <talchi@amazon.com> · 2025-08-29 13:55 -07:00
CommitterChinmay Talegaonkar <talchi@amazon.com> · 2025-08-29 13:55 -07:00
Parents80ede874d22c

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