Skip to content

Commit

Permalink
Recent fix covers psr-small as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Oct 25, 2021
1 parent fbdfa5e commit 65b54cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Lab

Downward Lab
^^^^^^^^^^^^
* Fix rules for finding domain files for airport domain (Silvan Sievers).
* Fix rules for finding domain files for airport and psr-small domains (Silvan Sievers).
* Add more ticks on y axis in relative plots (Jendrik Seipp).


Expand Down
12 changes: 6 additions & 6 deletions downward/suites.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ def find_domain_file(benchmarks_dir, domain, problem):
For a given problem filename "<taskname>.<ext>", check the following
domain filenames: "domain.pddl", "<taskname>-domain.<ext>",
"domain_<taskname>.<ext>" and "domain-<taskname>.<ext>", where ".<ext>"
is optional. Also check "<xyz>-domain.pddl" where <xyz> are the first
three characters of the task file name, to cover the airport domain
where task file names are p01-xxx.pddl and domain file names are
p01-domain.pddl.
"domain_<taskname>.<ext>" and "domain-<taskname>.<ext>", where
".<ext>" is optional. Also check "<xyz>-domain.pddl" where <xyz> are
the first three characters of the task file name, to cover the airport
and psr-small domains, where problem file names are p01-xxx.pddl and
domain file names are p01-domain.pddl.
"""
problem_root, ext = os.path.splitext(problem)
domain_basenames = [
"domain.pddl",
problem_root + "-domain" + ext,
problem_root[:3] + "-domain.pddl", # for airport
problem_root[:3] + "-domain.pddl", # for airport and psr-small
"domain_" + problem,
"domain-" + problem,
]
Expand Down

0 comments on commit 65b54cc

Please sign in to comment.