From 6848e67cfe3090290ecdc777ef0d249516b58562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20G=C3=B6kmen?= Date: Wed, 17 Jan 2024 23:58:48 -0800 Subject: [PATCH] Fix bug in hierarchy generation --- bddl/data_generation/get_hierarchy_full.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bddl/data_generation/get_hierarchy_full.py b/bddl/data_generation/get_hierarchy_full.py index 0474cac3..23b60c32 100644 --- a/bddl/data_generation/get_hierarchy_full.py +++ b/bddl/data_generation/get_hierarchy_full.py @@ -23,6 +23,7 @@ def add_igibson_objects(node, synset_to_cat, synset_to_substance): ''' if node["name"] in synset_to_cat: node["categories"] = sorted(synset_to_cat[node["name"]]) + if node["name"] in synset_to_substance: node["substances"] = sorted(synset_to_substance[node["name"]]) if "children" in node: