small fix for link params
authorjoka <johannes.kampmeyer@uni-paderborn.de>
Tue, 17 Jan 2017 11:40:59 +0000 (12:40 +0100)
committerjoka <johannes.kampmeyer@uni-paderborn.de>
Tue, 17 Jan 2017 11:40:59 +0000 (12:40 +0100)
src/emuvim/dcemulator/net.py

index faf758c..a08a9e1 100755 (executable)
@@ -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: