-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
55 lines (50 loc) · 2.39 KB
/
Copy pathsettings.py
File metadata and controls
55 lines (50 loc) · 2.39 KB
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
54
from pandas.api.types import CategoricalDtype
class Settings(object):
def __init__(self):
pass
dict_zonas = {
"epc" : {
"name": "El Potrero Chico",
"web": "https://www.thecrag.com/es/escalar/mexico/el-potrero-chico/guide",
"api": "https://nl-climbing.deta.dev/api/epc"
},
"huaste": {
"name": "La Huasteca",
"web" : "https://www.thecrag.com/es/escalar/mexico/la-huasteca/guide",
"api": "https://nl-climbing.deta.dev/api/huaste"
},
"salto": {
"name": "El Salto",
"web": "https://www.thecrag.com/es/escalar/mexico/el-salto/guide",
"api": "https://nl-climbing.deta.dev/api/salto"
}
}
DEPORTIVA = CategoricalDtype(categories=['5.6', '5.7', '5.8', '5.9',
'5.10', '5.10a', '5.10b', '5.10c', '5.10d',
'5.11', '5.11a', '5.11b', '5.11c', '5.11d',
'5.12', '5.12a', '5.12b', '5.12c', '5.12d',
'5.13', '5.13a', '5.13b', '5.13c', '5.13d',
'5.14', '5.14a', '5.14b', '5.14c', '5.14d',
'5.15', '5.15a', '5.15b', '5.15c', '5.15d'], ordered=True)
class Zonas:
all = ("epc", "salto", 'huaste')
EPC = {"name": "El Potrero Chico",
"alias": "epc",
"web": "https://www.thecrag.com/es/escalar/mexico/el-potrero-chico/guide"}
Huasteca = {"name": "La Huasteca",
"alias": "huaste",
"web" : "https://www.thecrag.com/es/escalar/mexico/la-huasteca/guide"}
Salto = {"name": "El Salto",
"alias": "salto",
"web": "https://www.thecrag.com/es/escalar/mexico/el-salto/guide"}
DEPORTIVA = ['5.6', '5.7', '5.8', '5.9',
'5.10', '5.10a', '5.10b', '5.10c', '5.10d',
'5.11', '5.11a', '5.11b', '5.11c', '5.11d',
'5.12', '5.12a', '5.12b', '5.12c', '5.12d',
'5.13', '5.13a', '5.13b', '5.13c', '5.13d',
'5.14', '5.14a', '5.14b', '5.14c', '5.14d',
'5.15', '5.15a', '5.15b', '5.15c', '5.15d']
GRADOS = CategoricalDtype(categories=DEPORTIVA, ordered=True)
VERMIN = ['V0', 'V1', 'V2', 'V3', 'V4','V5', 'V6', 'V7', 'V8', 'V9', 'V10', 'V11', 'V12', 'V13', 'V14', 'V15', 'V16']
DROP_COLUMNS = ['Unnamed: 1', 'Stars', 'Pop']
Default = Zonas().Huasteca["web"]