Skip to content

Commit

Permalink
Raise value error when rover-single has no goal predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
fpiedrah committed Oct 12, 2024
1 parent f73a48e commit 8b015c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dataset_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2431,6 +2431,11 @@ def get_task(
**kwargs,
)

if not goal_predicates:
# RAISE IF COMBINATION OF INIT STATE AND GOAL
# END GENERATING NO GOALS
raise ValueError()

problem = Problem(
name=f"{init}_to_{goal}_{n_waypoints}_{n_objectives}_{n_rocks}_{n_soil}_{n_cameras}_{n_modes}",
domain=self.domain,
Expand Down

0 comments on commit 8b015c8

Please sign in to comment.