Skip to content

Commit

Permalink
Fixed heuristic parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alvalentini committed Nov 3, 2023
1 parent 3dd4049 commit 4d199d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run(self):

setup(
name="up_fmap",
version="0.0.9",
version="0.0.10",
description="up_fmap",
author="Alejandro Torreño, Eva Onaindia and Oscar Sapena",
author_email="[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions up_fmap/fmap_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def _solve(
assert isinstance(problem, up.model.Problem) or isinstance(
problem, up.model.multi_agent.MultiAgentProblem
)
if heuristic is not None:
raise up.exceptions.UPUsageError('Custom heuristic is not supported!')
plan = None
logs: List["up.engines.results.LogMessage"] = []
with tempfile.TemporaryDirectory() as tempdir:
Expand All @@ -134,8 +136,6 @@ def _solve(
w.write_ma_domain(domain_filename)
w.write_ma_problem(problem_filename)
cmd = self._get_cmd_ma(problem, domain_filename, problem_filename)
if heuristic is not None:
cmd += ["-h", heuristic]
if output_stream is None:
# If we do not have an output stream to write to, we simply call
# a subprocess and retrieve the final output and error with communicate
Expand Down

0 comments on commit 4d199d5

Please sign in to comment.