adding sapmles files
Browse files- apps/core_dump_page.py +17 -0
- apps/distance.py +10 -0
- apps/gps_converter.py +20 -0
- physical_db/physical_database.csv +3 -3
- samples/DMS_to_Decimal.xlsx +0 -0
- samples/Decimal_to_DMS.xlsx +0 -0
- samples/distance.xlsx +0 -0
- samples/dump_core.txt +0 -0
apps/core_dump_page.py
CHANGED
@@ -3,6 +3,23 @@ import streamlit as st
|
|
3 |
|
4 |
st.title("Dump Core Parsing")
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# Initialize a list to hold the extracted data
|
7 |
data_global_cell_id = []
|
8 |
data_la_cell_name = []
|
|
|
3 |
|
4 |
st.title("Dump Core Parsing")
|
5 |
|
6 |
+
st.write(
|
7 |
+
"""This app allows you to parse core dump files int TXT format,
|
8 |
+
extract the Global Cell ID, LA Cell Name, WCDMA Service Area Number, and WCDMA Service Area Name.
|
9 |
+
Then convert LAC and Cell ID to Decimal to be easier to check.
|
10 |
+
"""
|
11 |
+
)
|
12 |
+
|
13 |
+
dump_core_sample_file = "samples/dump_core.txt"
|
14 |
+
|
15 |
+
# Create a download button
|
16 |
+
st.download_button(
|
17 |
+
label="Download Dump core sample File",
|
18 |
+
data=open(dump_core_sample_file, "rb").read(),
|
19 |
+
file_name="dump_core.txt",
|
20 |
+
mime="text/plain",
|
21 |
+
)
|
22 |
+
|
23 |
# Initialize a list to hold the extracted data
|
24 |
data_global_cell_id = []
|
25 |
data_la_cell_name = []
|
apps/distance.py
CHANGED
@@ -16,6 +16,16 @@ st.write(
|
|
16 |
"""
|
17 |
)
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
uploaded_file = st.file_uploader(
|
20 |
"Upload Excel file",
|
21 |
type=["xlsx"],
|
|
|
16 |
"""
|
17 |
)
|
18 |
|
19 |
+
distance_sample_file_path = "samples/distance.xlsx"
|
20 |
+
|
21 |
+
# Create a download button
|
22 |
+
st.download_button(
|
23 |
+
label="Download Distance Calculator Sample File",
|
24 |
+
data=open(distance_sample_file_path, "rb").read(),
|
25 |
+
file_name="distance.xlsx",
|
26 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
27 |
+
)
|
28 |
+
|
29 |
uploaded_file = st.file_uploader(
|
30 |
"Upload Excel file",
|
31 |
type=["xlsx"],
|
apps/gps_converter.py
CHANGED
@@ -15,6 +15,26 @@ Please choose a file containing the latitude and longitude columns.
|
|
15 |
"""
|
16 |
)
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
uploaded_file = st.file_uploader("Choose a file", type=["xlsx"])
|
19 |
col1_list = []
|
20 |
if uploaded_file is not None:
|
|
|
15 |
"""
|
16 |
)
|
17 |
|
18 |
+
decimal_to_degrees_sample_file_path = "samples/Decimal_to_DMS.xlsx"
|
19 |
+
degrees_to_decimal_sample_file_path = "samples/DMS_to_Decimal.xlsx"
|
20 |
+
|
21 |
+
col1, col2, col3 = st.columns(3)
|
22 |
+
|
23 |
+
with col1:
|
24 |
+
st.download_button(
|
25 |
+
label="Download Decimal_to_DMS Sample File",
|
26 |
+
data=open(decimal_to_degrees_sample_file_path, "rb").read(),
|
27 |
+
file_name="Decimal_to_DMS.xlsx",
|
28 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
29 |
+
)
|
30 |
+
with col2:
|
31 |
+
st.download_button(
|
32 |
+
label="Download DMS_to_Decimal Sample File",
|
33 |
+
data=open(degrees_to_decimal_sample_file_path, "rb").read(),
|
34 |
+
file_name="DMS_to_Decimal.xlsx",
|
35 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
36 |
+
)
|
37 |
+
|
38 |
uploaded_file = st.file_uploader("Choose a file", type=["xlsx"])
|
39 |
col1_list = []
|
40 |
if uploaded_file is not None:
|
physical_db/physical_database.csv
CHANGED
@@ -3095,9 +3095,9 @@
|
|
3095 |
6264,1,6264_1,90,-6.187333,11.382986,72.400002,2,0
|
3096 |
6264,2,6264_2,240,-6.187333,11.382986,72.400002,2,0
|
3097 |
6264,3,6264_3,320,-6.187333,11.382986,72.400002,2,0
|
3098 |
-
6265,1,6265_1,70,-6.
|
3099 |
-
6265,2,6265_2,185,-6.
|
3100 |
-
6265,3,6265_3,270,-6.
|
3101 |
6266,1,6266_1,0,-8.19469,10.85853,75,2,0
|
3102 |
6266,2,6266_2,190,-8.19469,10.85853,75,2,0
|
3103 |
6266,3,6266_3,240,-8.19469,10.85853,75,2,0
|
|
|
3095 |
6264,1,6264_1,90,-6.187333,11.382986,72.400002,2,0
|
3096 |
6264,2,6264_2,240,-6.187333,11.382986,72.400002,2,0
|
3097 |
6264,3,6264_3,320,-6.187333,11.382986,72.400002,2,0
|
3098 |
+
6265,1,6265_1,70,-6.063522,11.349365,72.400002,2,0
|
3099 |
+
6265,2,6265_2,185,-6.063522,11.349365,72.400002,2,2
|
3100 |
+
6265,3,6265_3,270,-6.063522,11.349365,72.400002,2,2
|
3101 |
6266,1,6266_1,0,-8.19469,10.85853,75,2,0
|
3102 |
6266,2,6266_2,190,-8.19469,10.85853,75,2,0
|
3103 |
6266,3,6266_3,240,-8.19469,10.85853,75,2,0
|
samples/DMS_to_Decimal.xlsx
ADDED
Binary file (9.95 kB). View file
|
|
samples/Decimal_to_DMS.xlsx
ADDED
Binary file (9.8 kB). View file
|
|
samples/distance.xlsx
ADDED
Binary file (11 kB). View file
|
|
samples/dump_core.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|