Skip to content

Commit

Permalink
[FIX] delete creation of graph in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anissa committed Oct 27, 2023
1 parent 2d0cd20 commit 89b9678
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions unified_planning/test/test_ttp_to_stn.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,6 @@ def test_matchcellar_to_stn(self):

self.ttp_to_stn.run()

options = {
"node_color": "blue",
"node_size": 1000,
"width": 3,
}
pos = nx.spring_layout(self.ttp_to_stn.stn)
edge_labels = dict(
[
(
(
u,
v,
),
[float(d["interval"][0]), float(d["interval"][1])],
)
for u, v, d in self.ttp_to_stn.stn.edges(data=True)
]
)
nx.draw_networkx_edge_labels(self.ttp_to_stn.stn, pos, edge_labels=edge_labels)
nx.draw_networkx(
self.ttp_to_stn.stn,
pos,
with_labels=True,
arrows=True,
**options,
)
# Each actions has start and end in the stn plus Start and End's nodes
self.assertTrue(
len(self.ttp_to_stn.stn) == len(self.plan.timed_actions) * 2 + 2
Expand Down

0 comments on commit 89b9678

Please sign in to comment.