James McCool
commited on
Commit
·
cf18cbb
1
Parent(s):
772166a
Remove unused session state frames in Contest Analysis tab of app.py
Browse files- Deleted several session state frames ('stack_size_frame', 'general_frame', 'duplication_frame', 'ROI_frame') to streamline the state management in the Contest Analysis section.
- This cleanup enhances code clarity and reduces potential memory usage by ensuring only necessary frames are retained.
app.py
CHANGED
@@ -644,6 +644,14 @@ if selected_tab == 'Contest Analysis':
|
|
644 |
del st.session_state['player_frame']
|
645 |
if 'stack_frame' in st.session_state:
|
646 |
del st.session_state['stack_frame']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
|
648 |
if st.session_state['entry_parse_var'] == 'Specific' and st.session_state['entry_names']:
|
649 |
st.session_state['display_contest_info'] = st.session_state['display_contest_info'][st.session_state['display_contest_info']['BaseName'].isin(st.session_state['entry_names'])]
|
|
|
644 |
del st.session_state['player_frame']
|
645 |
if 'stack_frame' in st.session_state:
|
646 |
del st.session_state['stack_frame']
|
647 |
+
if 'stack_size_frame' in st.session_state:
|
648 |
+
del st.session_state['stack_size_frame']
|
649 |
+
if 'general_frame' in st.session_state:
|
650 |
+
del st.session_state['general_frame']
|
651 |
+
if 'duplication_frame' in st.session_state:
|
652 |
+
del st.session_state['duplication_frame']
|
653 |
+
if 'ROI_frame' in st.session_state:
|
654 |
+
del st.session_state['ROI_frame']
|
655 |
|
656 |
if st.session_state['entry_parse_var'] == 'Specific' and st.session_state['entry_names']:
|
657 |
st.session_state['display_contest_info'] = st.session_state['display_contest_info'][st.session_state['display_contest_info']['BaseName'].isin(st.session_state['entry_names'])]
|