From 7540e8290d4b770b23d94da734b6ddf9e208c287 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 10 Jun 2022 19:49:19 +0200 Subject: Switch to dictionary for the network matrices --- example/simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/simulator.py b/example/simulator.py index 40a37a8..fb1b94f 100755 --- a/example/simulator.py +++ b/example/simulator.py @@ -26,7 +26,7 @@ B=np.full((n,n),5) # 5Mbps L=np.full((n,n),0) # 0s ##### Create the simulator -s=esds.Simulator(B,L,B,L) +s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L},"eth0":{"bandwidth":B, "latency":L}}) ##### Instantiate nodes uptime=180 # 180s uptime -- cgit v1.2.3