Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Scala committed Oct 16, 2024
1 parent cfba2c0 commit 801c439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions unified_planning/io/pddl_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def _add_timed_effects(
raise SyntaxError(
f"Not able to handle: {eff.value}, from line: {start_line}, col {start_col} to line: {end_line}, col {end_col}"
)

def _get_params(self, a: dict, types_map: TypesMap, domain_str: str):
a_params = OrderedDict()
for g in a.get("params", []):
Expand All @@ -926,6 +927,7 @@ def _get_params(self, a: dict, types_map: TypesMap, domain_str: str):
for p in g.value[0]:
a_params[p] = t
return a_params

def _parse_subtask(
self,
e,
Expand Down
3 changes: 1 addition & 2 deletions unified_planning/test/test_pddl_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@ def test_non_linear_car(self):
for ele in problem.actions:
if isinstance(ele, Process):
for e in ele.effects:
self.assertEqual(e.kind,EffectKind.DERIVATIVE)

self.assertEqual(e.kind, EffectKind.DERIVATIVE)

def test_matchcellar_reader(self):
reader = PDDLReader()
Expand Down

0 comments on commit 801c439

Please sign in to comment.