Skip to content

Commit

Permalink
Make _DownwardAlgorithm available as FastDownwardAlgorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Aug 7, 2023
1 parent 6650a2d commit b5643f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Lab
Downward Lab
^^^^^^^^^^^^
* Add *subdir* option for :class:`CachedFastDownwardRevision <downward.cached_revision.CachedFastDownwardRevision>` to support nested Fast Downward repos (Jendrik Seipp).
* Make ``_DownwardAlgorithm`` available as :class:`FastDownwardAlgorithm <downward.experiment.FastDownwardAlgorithm>` (Jendrik Seipp).


v7.3 (2023-03-03)
Expand Down
6 changes: 5 additions & 1 deletion downward/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def __eq__(self, other):
)


# Make class available under nicer name, but keep old name for backwards compatibility.
FastDownwardAlgorithm = _DownwardAlgorithm


class FastDownwardExperiment(Experiment):
"""Conduct a Fast Downward experiment.
Expand Down Expand Up @@ -300,7 +304,7 @@ def add_algorithm(
"--overall-memory-limit",
"3584M",
] + (driver_options or [])
algorithm = _DownwardAlgorithm(
algorithm = FastDownwardAlgorithm(
name,
CachedFastDownwardRevision(self.revision_cache, repo, rev, build_options),
driver_options,
Expand Down
4 changes: 2 additions & 2 deletions examples/downward/2020-09-11-B-bounded-cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from downward import suites
from downward.cached_revision import CachedFastDownwardRevision
from downward.experiment import _DownwardAlgorithm, FastDownwardRun
from downward.experiment import FastDownwardAlgorithm, FastDownwardRun
from lab.experiment import Experiment, get_default_data_dir

import project
Expand Down Expand Up @@ -79,7 +79,7 @@
config_with_bound[-1] = config_with_bound[-1].replace(
"bound=BOUND", f"bound={upper_bound}"
)
algo = _DownwardAlgorithm(
algo = FastDownwardAlgorithm(
algo_name,
cached_rev,
DRIVER_OPTIONS,
Expand Down

0 comments on commit b5643f0

Please sign in to comment.