Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pydtnsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
discus
pydtnsim
Commits
849a5c52
Commit
849a5c52
authored
7 years ago
by
Jarrod Pas
Browse files
Options
Downloads
Patches
Plain Diff
Fixes args not being kwargs
parent
74e29536
No related branches found
No related tags found
1 merge request
!3
Version 0.2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pydtn/core.py
+2
-2
2 additions, 2 deletions
pydtn/core.py
pydtn/network.py
+3
-3
3 additions, 3 deletions
pydtn/network.py
with
5 additions
and
5 deletions
pydtn/core.py
+
2
−
2
View file @
849a5c52
...
@@ -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
,
*
*
kw
args
):
self
.
env
=
env
self
.
env
=
env
self
.
__process
=
env
.
process
(
self
.
process
(
*
args
))
self
.
__process
=
env
.
process
(
self
.
process
(
*
*
kw
args
))
def
process
(
self
,
**
kwargs
):
def
process
(
self
,
**
kwargs
):
yield
self
.
env
.
timeout
(
0
)
yield
self
.
env
.
timeout
(
0
)
...
...
This diff is collapsed.
Click to expand it.
pydtn/network.py
+
3
−
3
View file @
849a5c52
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment