Use different matrix for wlan0 and eth0

This commit is contained in:
Loic Guegan 2022-06-10 18:01:51 +02:00
parent a857977702
commit 94b47ceab5
26 changed files with 71 additions and 57 deletions

View file

@ -27,13 +27,13 @@ import numpy as np
B=np.full((2,2),8)
L=np.full((2,2),0)
s=esds.Simulator(B,L)
s=esds.Simulator(B,L,B,L)
s.create_node("sender")
s.create_node("receiver")
def callback(simulator):
simulator.log("Network update!")
simulator.update_network(simulator.B,simulator.L+1/2)
simulator.update_network(simulator.B_wlan0,simulator.L_wlan0+1/2,simulator.B_eth0,simulator.L_eth0+1/2)
s.run(breakpoints_every=1/2,breakpoint_callback=callback)