-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
53 lines (34 loc) · 1.22 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import sys
sys.path.append(".")
import os
print (os.getcwd())
# print(sys.path)
import datetime
import os
from views.analysis import *
from services.inputs_reading_service import *
from services.conversing_service import *
def start_analysis():
start_time = datetime.datetime.now()
path = 'datasets/xored_inputs/'
# path = 'datasets/400/'
arr = os.listdir(path)
analysis = csvAdapter(arr, path, chunk=10000)
end_time = datetime.datetime.now()
time_diff = (end_time - start_time)
execution_time = time_diff.total_seconds()
print(execution_time)
# Total_UniformityResultsArray = []
# Total_UniquenessResultsArra = []
# Total_BitAliasingResultsArray = []
# Total_ReliabilityResultsArray = []
#
# for i in range(0, len(analysis), 1):
# Total_UniformityResultsArray += analysis[i][0]
# Total_UniquenessResultsArra += analysis[i][1]
# Total_BitAliasingResultsArray += analysis[i][2]
# Total_ReliabilityResultsArray += analysis[i][3]
#
# data_final = [np.array(Total_UniformityResultsArray), np.array(Total_UniquenessResultsArra),np.array(Total_BitAliasingResultsArray), np.array(Total_ReliabilityResultsArray)]
#
start_analysis()