From: joka Date: Tue, 17 Jan 2017 11:40:59 +0000 (+0100) Subject: small fix for link params X-Git-Tag: v3.1~50^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=27edb4f1fdaee04c82770e9b2f164c9661f40926;hp=-c;p=osm%2Fvim-emu.git small fix for link params --- 27edb4f1fdaee04c82770e9b2f164c9661f40926 diff --git a/src/emuvim/dcemulator/net.py b/src/emuvim/dcemulator/net.py index faf758c..a08a9e1 100755 --- 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: