main.py 779 Bytes
Newer Older
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
import os
import time
from datetime import timedelta
from script.base.dataframe_base import load_dataframes
from script.build_cache import build_cache
from script.analysis.degree_analysis import *



def main():
	start_time = time.clock()
	start_time_exec = time.time()

	dataframe = load_dataframes(os.getcwd() + '/script/' + 'base')
	#~ for i, line in enumerate(dataframe):
		#~ print(type(dataframe["MEDIA_FINAL"][i]))
		#~ print(dataframe["MEDIA_FINAL"][i])
	#~ print(dataframe)
	build_cache(dataframe)

	cpu_time = timedelta(seconds=round(time.clock() - start_time))
	run_time = timedelta(seconds=round(time.time() - start_time_exec))
	print("--- Tempo de CPU: {} ---".format(cpu_time))
	print("--- Tempo total: {} ---".format(run_time))

if __name__ == "__main__":
	main()