Skip to content

Commit cc7f1eb

Browse files
guilyxactions-user
authored andcommitted
Apply formatting changes
1 parent 97a356e commit cc7f1eb

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

jupyddl/data_analyst.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ def comparative_astar_heuristic_plot(self, domain="", problem=""):
300300
plt.ylabel("Planning computation time (s)")
301301

302302
for h in self.available_heuristics:
303-
times, nodes, _ = self.__gather_data_astar(domain_path=domain, problem_path=problem, heuristic_key=h)
303+
times, nodes, _ = self.__gather_data_astar(
304+
domain_path=domain, problem_path=problem, heuristic_key=h
305+
)
304306
data = dict()
305307
for i, val in enumerate(nodes):
306308
data[val] = times[i]
@@ -315,7 +317,7 @@ def comparative_astar_heuristic_plot(self, domain="", problem=""):
315317
"-o",
316318
label=h,
317319
)
318-
320+
319321
plt.title("A* heuristics complexity comparison")
320322
plt.legend(loc="upper left")
321323
plt.xscale("symlog")

tests/test_data_analyst.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ def test_data_analyst_constructor():
1111
_ = DataAnalyst()
1212
assert True
1313

14+
1415
def test_heuristics_comparer():
1516
da = DataAnalyst()
1617
da.comparative_astar_heuristic_plot()
1718

19+
1820
def test_heuristics_comparer_single():
1921
da = DataAnalyst()
20-
da.comparative_astar_heuristic_plot(domain="pddl-examples/flip/domain.pddl", problem="pddl-examples/flip/problem.pddl")
22+
da.comparative_astar_heuristic_plot(
23+
domain="pddl-examples/flip/domain.pddl",
24+
problem="pddl-examples/flip/problem.pddl",
25+
)
26+
2127

2228
def test_data_analyst_plot_dfs_one_pddl():
2329
da = DataAnalyst()
@@ -48,7 +54,10 @@ def test_data_analyst_plot_dijkstra_one_pddl():
4854

4955
def test_data_analyst_plot_astar_h_goal_count_one_pddl():
5056
da = DataAnalyst()
51-
da.plot_astar(domain="pddl-examples/flip/domain.pddl", problem="pddl-examples/flip/problem.pddl")
57+
da.plot_astar(
58+
domain="pddl-examples/flip/domain.pddl",
59+
problem="pddl-examples/flip/problem.pddl",
60+
)
5261
assert True
5362

5463

0 commit comments

Comments
 (0)