diff options
Diffstat (limited to 'Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py')
-rw-r--r-- | Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py b/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py index e0402519..b27a0ffc 100644 --- a/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py +++ b/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py | |||
@@ -24,9 +24,12 @@ def readcsvfile(filename): | |||
24 | # meta models are string | 24 | # meta models are string |
25 | elif(arr[0] == constants.METAMODEL): | 25 | elif(arr[0] == constants.METAMODEL): |
26 | contents[constants.METAMODEL] = arr[1:] | 26 | contents[constants.METAMODEL] = arr[1:] |
27 | # all other contants are integer | 27 | # NA and OD are integers |
28 | else: | 28 | else: |
29 | contents[arr[0]] = list(map(int, arr[1:])) | 29 | try: |
30 | contents[arr[0]] = list(map(int, arr[1:])) | ||
31 | except: | ||
32 | print(arr[0], ' is not integer') | ||
30 | f.close() | 33 | f.close() |
31 | return contents | 34 | return contents |
32 | 35 | ||