diff options
author | 20001LastOrder <boqi.chen@mail.mcgill.ca> | 2019-08-08 16:45:45 -0400 |
---|---|---|
committer | 20001LastOrder <boqi.chen@mail.mcgill.ca> | 2019-08-08 16:45:45 -0400 |
commit | c33f0b9c4e112ee573d1b26d205a253cc0e487f8 (patch) | |
tree | 1ec2c4ab56b5bc0d0d56fa111bab0520c05604b4 /Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py | |
parent | Further development of realistic solver, create generation config for ecore m... (diff) | |
download | VIATRA-Generator-c33f0b9c4e112ee573d1b26d205a253cc0e487f8.tar.gz VIATRA-Generator-c33f0b9c4e112ee573d1b26d205a253cc0e487f8.tar.zst VIATRA-Generator-c33f0b9c4e112ee573d1b26d205a253cc0e487f8.zip |
Configurations for generation and new domain for generation ecore model
Diffstat (limited to 'Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py')
-rw-r--r-- | Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): | |||
30 | elif(arr[0] == constants.NODE_TYPE): | 30 | elif(arr[0] == constants.NODE_TYPE): |
31 | types = data[i+1].replace('\n', '').split(',') | 31 | types = data[i+1].replace('\n', '').split(',') |
32 | numbers = data[i+2].replace('\n', '').split(',') | 32 | numbers = data[i+2].replace('\n', '').split(',') |
33 | #convert number to floats | ||
34 | numbers = [float(n) for n in numbers] | ||
33 | contents[constants.Node_TYPE_KEY] = {t : n for t, n in zip(types, numbers)} | 35 | contents[constants.Node_TYPE_KEY] = {t : n for t, n in zip(types, numbers)} |
34 | # NA and OD are integers, and store other information as string | 36 | # NA and OD are integers, and store other information as string |
35 | else: | 37 | else: |