diff --git a/setup.py b/setup.py index e2cbd20..db07706 100644 --- a/setup.py +++ b/setup.py @@ -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="onaindia@dsic.upv.es", diff --git a/up_fmap/fmap_planner.py b/up_fmap/fmap_planner.py index 5280187..852ae0f 100644 --- a/up_fmap/fmap_planner.py +++ b/up_fmap/fmap_planner.py @@ -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: @@ -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