From c33f0b9c4e112ee573d1b26d205a253cc0e487f8 Mon Sep 17 00:00:00 2001 From: 20001LastOrder Date: Thu, 8 Aug 2019 16:45:45 -0400 Subject: Configurations for generation and new domain for generation ecore model --- Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py') diff --git a/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py b/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py index 1cec2f0c..394168d8 100644 --- a/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py +++ b/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py @@ -30,6 +30,8 @@ def readcsvfile(filename): elif(arr[0] == constants.NODE_TYPE): types = data[i+1].replace('\n', '').split(',') numbers = data[i+2].replace('\n', '').split(',') + #convert number to floats + numbers = [float(n) for n in numbers] contents[constants.Node_TYPE_KEY] = {t : n for t, n in zip(types, numbers)} # NA and OD are integers, and store other information as string else: -- cgit v1.2.3-70-g09d2