support L26
Browse files- queries/process_lte.py +0 -2
- utils/utils_vars.py +12 -4
queries/process_lte.py
CHANGED
@@ -129,8 +129,6 @@ def process_lncel(file_path: str):
|
|
129 |
df_lncel = dfs["LNCEL"]
|
130 |
df_lncel.columns = df_lncel.columns.str.replace(r"[ ]", "", regex=True)
|
131 |
df_lncel["final_name"] = df_lncel["name"].fillna(df_lncel["cellName"])
|
132 |
-
# Replace empty by 999999_empty
|
133 |
-
# df_lncel["final_name"] = df_lncel["final_name"].fillna("999999_empty")
|
134 |
df_lncel["code"] = df_lncel["final_name"].str.split("_").str[0]
|
135 |
df_lncel["code"] = (
|
136 |
pd.to_numeric(df_lncel["code"], errors="coerce").fillna(0).astype(int)
|
|
|
129 |
df_lncel = dfs["LNCEL"]
|
130 |
df_lncel.columns = df_lncel.columns.str.replace(r"[ ]", "", regex=True)
|
131 |
df_lncel["final_name"] = df_lncel["name"].fillna(df_lncel["cellName"])
|
|
|
|
|
132 |
df_lncel["code"] = df_lncel["final_name"].str.split("_").str[0]
|
133 |
df_lncel["code"] = (
|
134 |
pd.to_numeric(df_lncel["code"], errors="coerce").fillna(0).astype(int)
|
utils/utils_vars.py
CHANGED
@@ -20,12 +20,17 @@ def get_physical_db():
|
|
20 |
|
21 |
|
22 |
class UtilsVars:
|
23 |
-
sector_mapping = {4: 1, 5: 2, 6: 3, 11: 1, 12: 2, 13: 3}
|
24 |
type_cellule = {1: "Macro Cell 1800", 0: "Macro Cell 900"}
|
25 |
oml_band_frequence = {1: "OML BAND GSM 1800", 0: "OML BAND GSM 900"}
|
26 |
gsm_band = {1: "G1800", 0: "G900"}
|
27 |
configuration_schema = {1: "EGPRS 1800", 0: "EGPRS 900"}
|
28 |
channeltype_mapping = {4: "BCCH", 3: "TRX_TCH"}
|
|
|
|
|
|
|
|
|
|
|
29 |
porteuse_mapping = {
|
30 |
3004: "OML UTRA Band VIII",
|
31 |
3006: "OML UTRA Band VIII",
|
@@ -41,6 +46,7 @@ class UtilsVars:
|
|
41 |
"L800": "7fff0000",
|
42 |
"L1800": "7f00ff00",
|
43 |
"L2300": "7f00ffff",
|
|
|
44 |
}
|
45 |
size_mapping = {
|
46 |
"U900": 100,
|
@@ -50,6 +56,7 @@ class UtilsVars:
|
|
50 |
"L800": 100,
|
51 |
"L1800": 120,
|
52 |
"L2300": 90,
|
|
|
53 |
}
|
54 |
wcdma_band = {
|
55 |
3004: "U900",
|
@@ -81,6 +88,8 @@ class UtilsVars:
|
|
81 |
all_db_dfs = []
|
82 |
all_db_dfs_names = []
|
83 |
final_all_database = None
|
|
|
|
|
84 |
neighbors_database = ""
|
85 |
file_path = ""
|
86 |
gsm_kml_file = None
|
@@ -111,12 +120,11 @@ def get_band(text):
|
|
111 |
return "L2300"
|
112 |
elif "L800" in text:
|
113 |
return "L800"
|
|
|
|
|
114 |
return np.nan # or return None
|
115 |
|
116 |
|
117 |
-
##############################STATISTICS############################
|
118 |
-
|
119 |
-
|
120 |
class GsmAnalysisData:
|
121 |
total_number_of_bsc = 0
|
122 |
total_number_of_cell = 0
|
|
|
20 |
|
21 |
|
22 |
class UtilsVars:
|
23 |
+
sector_mapping = {4: 1, 5: 2, 6: 3, 11: 1, 12: 2, 13: 3, 81: 1, 82: 2, 83: 3}
|
24 |
type_cellule = {1: "Macro Cell 1800", 0: "Macro Cell 900"}
|
25 |
oml_band_frequence = {1: "OML BAND GSM 1800", 0: "OML BAND GSM 900"}
|
26 |
gsm_band = {1: "G1800", 0: "G900"}
|
27 |
configuration_schema = {1: "EGPRS 1800", 0: "EGPRS 900"}
|
28 |
channeltype_mapping = {4: "BCCH", 3: "TRX_TCH"}
|
29 |
+
oml_lte_freq_band = {
|
30 |
+
"L1800": "OML E-UTRA Band 3 - 20MHz",
|
31 |
+
"L800": "OML E-UTRA Band 20 - 20MHz",
|
32 |
+
"L2300": "OML E-UTRA Band 43 - 20MHz",
|
33 |
+
}
|
34 |
porteuse_mapping = {
|
35 |
3004: "OML UTRA Band VIII",
|
36 |
3006: "OML UTRA Band VIII",
|
|
|
46 |
"L800": "7fff0000",
|
47 |
"L1800": "7f00ff00",
|
48 |
"L2300": "7f00ffff",
|
49 |
+
"L2600": "7f0000ff",
|
50 |
}
|
51 |
size_mapping = {
|
52 |
"U900": 100,
|
|
|
56 |
"L800": 100,
|
57 |
"L1800": 120,
|
58 |
"L2300": 90,
|
59 |
+
"L2600": 80,
|
60 |
}
|
61 |
wcdma_band = {
|
62 |
3004: "U900",
|
|
|
88 |
all_db_dfs = []
|
89 |
all_db_dfs_names = []
|
90 |
final_all_database = None
|
91 |
+
atoll_dfs = []
|
92 |
+
final_atoll_database = None
|
93 |
neighbors_database = ""
|
94 |
file_path = ""
|
95 |
gsm_kml_file = None
|
|
|
120 |
return "L2300"
|
121 |
elif "L800" in text:
|
122 |
return "L800"
|
123 |
+
elif "L2600" in text:
|
124 |
+
return "L2600"
|
125 |
return np.nan # or return None
|
126 |
|
127 |
|
|
|
|
|
|
|
128 |
class GsmAnalysisData:
|
129 |
total_number_of_bsc = 0
|
130 |
total_number_of_cell = 0
|