adding BSC name to LAC chart
Browse files- apps/dump_analysis.py +1 -1
- queries/process_gsm.py +20 -3
- utils/utils_vars.py +20 -0
apps/dump_analysis.py
CHANGED
@@ -86,7 +86,7 @@ def dump_analysis_space():
|
|
86 |
with number_of_cell_per_lac_plot_col:
|
87 |
fig = create_lac_count_per_controller_subplots(
|
88 |
df=GsmAnalysisData.number_of_cell_per_lac,
|
89 |
-
controller_column="
|
90 |
lac_column="LAC",
|
91 |
count_column="count",
|
92 |
fig_title="Number of Cell per LAC and BSC",
|
|
|
86 |
with number_of_cell_per_lac_plot_col:
|
87 |
fig = create_lac_count_per_controller_subplots(
|
88 |
df=GsmAnalysisData.number_of_cell_per_lac,
|
89 |
+
controller_column="BSC_NAME_ID",
|
90 |
lac_column="LAC",
|
91 |
count_column="count",
|
92 |
fig_title="Number of Cell per LAC and BSC",
|
queries/process_gsm.py
CHANGED
@@ -217,6 +217,12 @@ def gsm_analaysis(file_path: str):
|
|
217 |
GsmAnalysisData.number_of_cell_per_lac = (
|
218 |
gsm_df.groupby(["BSC", "locationAreaIdLAC"]).size().reset_index(name="count")
|
219 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
# Rename columns
|
221 |
GsmAnalysisData.number_of_cell_per_lac.rename(
|
222 |
columns={"BSC": "BSC", "locationAreaIdLAC": "LAC", "count": "count"},
|
@@ -226,9 +232,20 @@ def gsm_analaysis(file_path: str):
|
|
226 |
GsmAnalysisData.number_of_cell_per_lac["LAC"] = (
|
227 |
"LAC_" + GsmAnalysisData.number_of_cell_per_lac["LAC"].astype(str)
|
228 |
)
|
229 |
-
|
230 |
-
|
|
|
|
|
|
|
231 |
)
|
|
|
232 |
GsmAnalysisData.number_of_cell_per_lac = GsmAnalysisData.number_of_cell_per_lac[
|
233 |
-
["
|
234 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
GsmAnalysisData.number_of_cell_per_lac = (
|
218 |
gsm_df.groupby(["BSC", "locationAreaIdLAC"]).size().reset_index(name="count")
|
219 |
)
|
220 |
+
|
221 |
+
# Get BSC name
|
222 |
+
GsmAnalysisData.number_of_cell_per_lac["BSC_NAME"] = (
|
223 |
+
GsmAnalysisData.number_of_cell_per_lac["BSC"].map(UtilsVars.bsc_name).fillna("")
|
224 |
+
)
|
225 |
+
|
226 |
# Rename columns
|
227 |
GsmAnalysisData.number_of_cell_per_lac.rename(
|
228 |
columns={"BSC": "BSC", "locationAreaIdLAC": "LAC", "count": "count"},
|
|
|
232 |
GsmAnalysisData.number_of_cell_per_lac["LAC"] = (
|
233 |
"LAC_" + GsmAnalysisData.number_of_cell_per_lac["LAC"].astype(str)
|
234 |
)
|
235 |
+
|
236 |
+
GsmAnalysisData.number_of_cell_per_lac["BSC_NAME_ID"] = (
|
237 |
+
GsmAnalysisData.number_of_cell_per_lac[["BSC_NAME", "BSC"]]
|
238 |
+
.astype(str)
|
239 |
+
.apply("_".join, axis=1)
|
240 |
)
|
241 |
+
|
242 |
GsmAnalysisData.number_of_cell_per_lac = GsmAnalysisData.number_of_cell_per_lac[
|
243 |
+
["BSC_NAME_ID", "LAC", "count"]
|
244 |
]
|
245 |
+
|
246 |
+
# GsmAnalysisData.number_of_cell_per_lac["BSC"] = (
|
247 |
+
# "BSC_" + GsmAnalysisData.number_of_cell_per_lac["BSC"].astype(str)
|
248 |
+
# )
|
249 |
+
# GsmAnalysisData.number_of_cell_per_lac = GsmAnalysisData.number_of_cell_per_lac[
|
250 |
+
# ["BSC", "LAC", "count"]
|
251 |
+
# ]
|
utils/utils_vars.py
CHANGED
@@ -37,6 +37,16 @@ class UtilsVars:
|
|
37 |
10837: "U2100",
|
38 |
10812: "U2100",
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
final_lte_database = ""
|
41 |
final_gsm_database = ""
|
42 |
final_wcdma_database = ""
|
@@ -50,6 +60,16 @@ class UtilsVars:
|
|
50 |
physisal_db = get_physical_db()
|
51 |
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
# print(UtilsVars.physisal_db)
|
54 |
|
55 |
|
|
|
37 |
10837: "U2100",
|
38 |
10812: "U2100",
|
39 |
}
|
40 |
+
bsc_name = {
|
41 |
+
403698: "MBSCTST",
|
42 |
+
403699: "MBSC01",
|
43 |
+
403701: "MBSC04",
|
44 |
+
403702: "MBSC03",
|
45 |
+
403703: "MBSC02",
|
46 |
+
406283: "MBSKTL01",
|
47 |
+
406284: "MBSSEG01",
|
48 |
+
406308: "MBSSK0S1",
|
49 |
+
}
|
50 |
final_lte_database = ""
|
51 |
final_gsm_database = ""
|
52 |
final_wcdma_database = ""
|
|
|
60 |
physisal_db = get_physical_db()
|
61 |
|
62 |
|
63 |
+
# BSC name
|
64 |
+
# 403698 MBSCTST
|
65 |
+
# 403699 MBSC01
|
66 |
+
# 403701 MBSC04
|
67 |
+
# 403702 MBSC03
|
68 |
+
# 403703 MBSC02
|
69 |
+
# 406283 MBSKTL01
|
70 |
+
# 406284 MBSSEG01
|
71 |
+
# 406308 MBSSK0S1
|
72 |
+
|
73 |
# print(UtilsVars.physisal_db)
|
74 |
|
75 |
|