UPDATE LCG IMAGE
Browse files- apps/kpi_analysis/lcg_analysis.py +10 -6
- assets/lcg_analysis.png +0 -0
apps/kpi_analysis/lcg_analysis.py
CHANGED
@@ -28,7 +28,7 @@ with doc_col:
|
|
28 |
)
|
29 |
|
30 |
with image_col:
|
31 |
-
st.image("./assets/
|
32 |
|
33 |
uploaded_file = st.file_uploader("Upload LCG report in CSV format", type="csv")
|
34 |
|
@@ -75,17 +75,21 @@ if uploaded_file is not None:
|
|
75 |
# Input validation
|
76 |
try:
|
77 |
if num_threshold_days > num_last_days:
|
78 |
-
st.warning(
|
|
|
|
|
79 |
st.stop()
|
80 |
-
|
81 |
if num_last_days < 3:
|
82 |
-
st.warning(
|
|
|
|
|
83 |
st.stop()
|
84 |
-
|
85 |
if lcg_utilization_threshold <= 0 or lcg_utilization_threshold > 100:
|
86 |
st.warning("LCG utilization threshold must be between 1 and 100")
|
87 |
st.stop()
|
88 |
-
|
89 |
with st.spinner("Processing data..."):
|
90 |
results = load_and_process_lcg_data(
|
91 |
uploaded_file,
|
|
|
28 |
)
|
29 |
|
30 |
with image_col:
|
31 |
+
st.image("./assets/lcg_analysis.png", width=400)
|
32 |
|
33 |
uploaded_file = st.file_uploader("Upload LCG report in CSV format", type="csv")
|
34 |
|
|
|
75 |
# Input validation
|
76 |
try:
|
77 |
if num_threshold_days > num_last_days:
|
78 |
+
st.warning(
|
79 |
+
"Number of threshold days cannot be greater than number of analysis days"
|
80 |
+
)
|
81 |
st.stop()
|
82 |
+
|
83 |
if num_last_days < 3:
|
84 |
+
st.warning(
|
85 |
+
"Analysis period should be at least 3 days for meaningful results"
|
86 |
+
)
|
87 |
st.stop()
|
88 |
+
|
89 |
if lcg_utilization_threshold <= 0 or lcg_utilization_threshold > 100:
|
90 |
st.warning("LCG utilization threshold must be between 1 and 100")
|
91 |
st.stop()
|
92 |
+
|
93 |
with st.spinner("Processing data..."):
|
94 |
results = load_and_process_lcg_data(
|
95 |
uploaded_file,
|
assets/lcg_analysis.png
ADDED
![]() |