Skip to content
Snippets Groups Projects
Commit 4e0a2062 authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix bug: from np to array

parent 609bf4a1
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ def generate_topohub_GNS3_topology():
topo = topohub.get(topology_name)
g = nx.node_link_graph(topo)
P_values = np.random.lognormal(mean=0, sigma=1, size=g.graph['stats']['nodes'])
P_values = np.random.lognormal(mean=0, sigma=1, size=g.graph['stats']['nodes']).tolist()
print("P_values:", P_values)
# Extract X (longitude) and Y (latitude) positions
......@@ -285,8 +285,8 @@ def generate_topohub_GNS3_topology():
ui = array_ubuntu_intermediate[i]
pc.connect(ui)
if input("Start Ubuntu VC Server (y/N)?") != "y":
sys.exit()
# if input("Start Ubuntu VC Server (y/N)?") != "y":
# sys.exit()
threading.Thread(target=run_vc_server, args=[map_connection_ubuntu_base], daemon=True).start()
# Press y to start Ubuntu bases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment