projects
/
osm
/
vim-emu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
311b215
)
small fix for link params
author
joka
<johannes.kampmeyer@uni-paderborn.de>
Tue, 17 Jan 2017 11:40:59 +0000
(12:40 +0100)
committer
joka
<johannes.kampmeyer@uni-paderborn.de>
Tue, 17 Jan 2017 11:40:59 +0000
(12:40 +0100)
src/emuvim/dcemulator/net.py
patch
|
blob
|
history
diff --git
a/src/emuvim/dcemulator/net.py
b/src/emuvim/dcemulator/net.py
index
faf758c
..
a08a9e1
100755
(executable)
--- a/
src/emuvim/dcemulator/net.py
+++ b/
src/emuvim/dcemulator/net.py
@@
-183,7
+183,7
@@
class DCNetwork(Containernet):
edge_attributes = [p for p in params if p in weight_metrics]
for attr in edge_attributes:
# if delay: strip ms (need number as weight in graph)
- match = re.search('([0-9]*\.?[0-9]+)',
params[attr]
)
+ match = re.search('([0-9]*\.?[0-9]+)',
str(params[attr])
)
if match:
attr_number = match.group(1)
else: