forked from twrdyyy/bitehack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnormalizer.py
More file actions
27 lines (20 loc) · 740 Bytes
/
normalizer.py
File metadata and controls
27 lines (20 loc) · 740 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
from unemploymentDictionary import *
from healthDictionary import *
import math
from getDataUrl import *
def normalize(UrlDict):
for key in UrlDict:
for issue in UrlDict[key]:
pass
if __name__ == '__main__':
health = healthDictionary(getUrlDict()['health'])
unemp = unemploymentDictionary(getUrlDict()['economy']['unemployment'])
tumor = tumorDictionary(getUrlDict()['health']["tumor"])
for key in health:
for issue in health[key]:
print( key + ' ' + issue + ' ' + str(health[key][issue]))
#ReLu
health[key][issue] *= (-1)*(1.0/health['normal'][issue])
if issue == "samoocena stanu zdrowia":
health[key][issue] *= -1
print( key + ' ' + issue + ' ' + str(health[key][issue]))