Skip to content

Commit 5aee9f4

Browse files
guilyxactions-user
authored andcommitted
Apply formatting changes
1 parent 42f18d0 commit 5aee9f4

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

jupyddl/data_analyst.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ def comparative_astar_heuristic_plot(
367367
times_y.append(data[node_opened])
368368

369369
ax.plot(
370-
nodes_sorted, times_y, "-o", label=h,
370+
nodes_sorted,
371+
times_y,
372+
"-o",
373+
label=h,
371374
)
372375

373376
plt.title("A* heuristics complexity comparison")
@@ -439,7 +442,10 @@ def comparative_data_plot(
439442
for node_opened in nodes_sorted:
440443
times_y.append(data[node_opened])
441444
ax.plot(
442-
nodes_sorted, times_y, "-o", label=planner,
445+
nodes_sorted,
446+
times_y,
447+
"-o",
448+
label=planner,
443449
)
444450
plt.title("Planners complexity comparison")
445451
plt.legend(loc="upper left")

jupyddl/heuristics.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ def compute(self, state):
8181
return self.heuristic_keys[self.current_h](costs)
8282

8383
for ax in self.cache.axioms:
84-
fact_costs = self.automated_planner.pddl.compute_costs_one_step_derivation(
85-
facts, fact_costs, ax, self.current_h
84+
fact_costs = (
85+
self.automated_planner.pddl.compute_costs_one_step_derivation(
86+
facts, fact_costs, ax, self.current_h
87+
)
8688
)
8789

8890
actions = self.automated_planner.available_actions(state)

0 commit comments

Comments
 (0)