Adapt the networkx simulation by adding a delay of 1 timestep before adding the input signals of a spike, such that it runs in sync with the lava LIF simulation.
(Simply delaying entire snn networkx simulation by 1 timestep yields incorrect result as that does not allow for computation of the bias, etc for v[t] and u[t]).
Ensure the default values, like bias for v[t], etc are computed at the first/same timestep.
Adapt the networkx simulation by adding a delay of 1 timestep before adding the input signals of a spike, such that it runs in sync with the lava LIF simulation.
(Simply delaying entire snn networkx simulation by 1 timestep yields incorrect result as that does not allow for computation of the bias, etc for v[t] and u[t]). Ensure the default values, like bias for v[t], etc are computed at the first/same timestep.