Skip to content

Commit

Permalink
Update processing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Jan 14, 2025
1 parent 2f10173 commit b50d310
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bddl/knowledge_base/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ def create_objects(self):
objs.append(obj)

# Check that all of the renames have happened
missing_renames = {final_name for _, final_name in self.object_rename_mapping.values() if not Object.exists(name=final_name.split("-")[1])}
assert len(missing_renames) == 0, f"{missing_renames} do not exist in the database. Did you rename a nonexistent object (or one in the deletion queue)?"
# TODO: Is this really useful? Doubt it.
# missing_renames = {final_name for _, final_name in self.object_rename_mapping.values() if not Object.exists(name=final_name.split("-")[1])}
# assert len(missing_renames) == 0, f"{missing_renames} do not exist in the database. Did you rename a nonexistent object (or one in the deletion queue)?"


def create_scenes(self):
Expand Down

0 comments on commit b50d310

Please sign in to comment.