Skip to content

Commit

Permalink
Update processing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Sep 2, 2023
1 parent 1f2bb29 commit cbc7cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bddl/knowledge_base/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def create_tasks(self):
create tasks and map to synsets
"""
self.debug_print("Creating tasks...")
tasks = glob.glob(BDDL_DIR / "activity_definitions/*")
tasks = glob.glob(str(BDDL_DIR / "activity_definitions/*"))
tasks = [(act, inst) for act in get_all_activities() for inst in range(get_instance_count(act))]
for act, inst in self.tqdm(tasks):
# Load task definition
Expand Down Expand Up @@ -306,7 +306,7 @@ def create_tasks(self):

def create_transitions(self):
# Load the transition data
json_paths = glob.glob(GENERATED_DATA_DIR / "transition_map/tm_jsons/*.json")
json_paths = glob.glob(str(GENERATED_DATA_DIR / "transition_map/tm_jsons/*.json"))
transitions = []
for jp in json_paths:
with open(jp) as f:
Expand Down

0 comments on commit cbc7cc3

Please sign in to comment.