aboutsummaryrefslogtreecommitdiffstats
path: root/Metrics/Metrics-Calculation/metrics_plot/utils
diff options
context:
space:
mode:
authorLibravatar 20001LastOrder <boqi.chen@mail.mcgill.ca>2019-07-16 10:54:25 -0400
committerLibravatar 20001LastOrder <boqi.chen@mail.mcgill.ca>2019-07-16 10:54:25 -0400
commit59ef2d4560cde4954c5e1f850958c0ca59c742df (patch)
tree60373712073928d27dd657439b2430fa4ca09bc7 /Metrics/Metrics-Calculation/metrics_plot/utils
parentmeasurements for the different violation types, comparison for differenct gen... (diff)
downloadVIATRA-Generator-59ef2d4560cde4954c5e1f850958c0ca59c742df.tar.gz
VIATRA-Generator-59ef2d4560cde4954c5e1f850958c0ca59c742df.tar.zst
VIATRA-Generator-59ef2d4560cde4954c5e1f850958c0ca59c742df.zip
consider node types during generation
Diffstat (limited to 'Metrics/Metrics-Calculation/metrics_plot/utils')
-rw-r--r--Metrics/Metrics-Calculation/metrics_plot/utils/GraphType.py3
-rw-r--r--Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Metrics/Metrics-Calculation/metrics_plot/utils/GraphType.py b/Metrics/Metrics-Calculation/metrics_plot/utils/GraphType.py
index 827c2a5e..d6bdad0d 100644
--- a/Metrics/Metrics-Calculation/metrics_plot/utils/GraphType.py
+++ b/Metrics/Metrics-Calculation/metrics_plot/utils/GraphType.py
@@ -11,8 +11,9 @@ class GraphCollection:
11 self.nas = [] 11 self.nas = []
12 self.mpcs = [] 12 self.mpcs = []
13 self.name = name 13 self.name = name
14 self.size = number
15 models = reader.readmultiplefiles(path, number, shouldShuffle) 14 models = reader.readmultiplefiles(path, number, shouldShuffle)
15 print(len(models))
16 self.size = len(models)
16 for i in range(len(models)): 17 for i in range(len(models)):
17 contents, out_d, na, mpc = reader.getmetrics(models[i]) 18 contents, out_d, na, mpc = reader.getmetrics(models[i])
18 self.out_ds.append(out_d) 19 self.out_ds.append(out_d)
diff --git a/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py b/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py
index b27a0ffc..33378ce5 100644
--- a/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py
+++ b/Metrics/Metrics-Calculation/metrics_plot/utils/readCSV.py
@@ -29,7 +29,8 @@ def readcsvfile(filename):
29 try: 29 try:
30 contents[arr[0]] = list(map(int, arr[1:])) 30 contents[arr[0]] = list(map(int, arr[1:]))
31 except: 31 except:
32 print(arr[0], ' is not integer') 32 message = arr[0], ' is not integer'
33 #print(message)
33 f.close() 34 f.close()
34 return contents 35 return contents
35 36