Skip to content
Snippets Groups Projects
Commit 849a5c52 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Fixes args not being kwargs

parent 74e29536
No related branches found
No related tags found
1 merge request!3Version 0.2
...@@ -3,9 +3,9 @@ class Process: ...@@ -3,9 +3,9 @@ class Process:
self.env = None self.env = None
self.__process = None self.__process = None
def start(self, env, *args): def start(self, env, **kwargs):
self.env = env self.env = env
self.__process = env.process(self.process(*args)) self.__process = env.process(self.process(**kwargs))
def process(self, **kwargs): def process(self, **kwargs):
yield self.env.timeout(0) yield self.env.timeout(0)
......
...@@ -29,18 +29,18 @@ class Network: ...@@ -29,18 +29,18 @@ class Network:
if trace is None: if trace is None:
trace = traces['random']() trace = traces['random']()
self.trace = trace self.trace = trace
self.trace.start(env, self) self.trace.start(env, network=self)
# community detection # community detection
self.community = community self.community = community
if community is not None: if community is not None:
self.community.start(env, self) self.community.start(env, network=self)
# packet generation # packet generation
if packets is None: if packets is None:
packets = {} packets = {}
self.packets = PacketGenerator(**packets) self.packets = PacketGenerator(**packets)
self.packets.start(env, self) self.packets.start(env, network=self)
# create node network # create node network
if node_factory is None: if node_factory is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment