-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
34 lines (27 loc) · 1007 Bytes
/
main.py
File metadata and controls
34 lines (27 loc) · 1007 Bytes
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
from SRC.parser import parser
from SRC.createdfsregion import createRegion, filterRegion, printReport
from SRC.createdfstop import createTop
from SRC.initialclean import cleanMerge
if __name__ == "__main__":
top, region, filt, repo = parser()
if top == region == filt == repo == False:
print("Hola! Elige un flag: -top, -region, -filt, -repo")
if top:
clean = cleanMerge()
now = createTop()
if region:
clean = cleanMerge()
reg = createRegion()
if filt:
print("\nFilter subregion between 0.49 and 0.92 HDI values")
minim =input("Insert a min value: ")
maxim =input("Insert a max value: ")
if float(minim) >= 0.93 or float(maxim) <= 0.48:
print("FAIL | Error de parametrización")
else:
if minim > maxim:
print("FAIL | min > max")
else:
flt = filterRegion(minim,maxim)
if repo:
report = printReport()