ifw-arz commited on
Commit
4201668
1 Parent(s): c82912b

error_handling

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -64,9 +64,6 @@ if not check_password():
64
 
65
  def main():
66
 
67
- if not os.path.exists("Messungen"):
68
- os.makedirs("Messungen")
69
-
70
  sprint_data_folder = "Messungen"
71
 
72
  sprint_csv_files = get_csv_files(sprint_data_folder)
@@ -104,13 +101,16 @@ def main():
104
  with col2:
105
  st.markdown("<h2 style='text-align: center; color: black; font-family:Arial;font-size:2rem;'>Auswertung</h2>", unsafe_allow_html=True)
106
 
107
- sliced_data = slice_data(selected_file)
108
- recurrence_plot = create_recurrence_plot(sliced_data)
109
- classification_result = classification(recurrence_plot)
110
- fig_feed, fig_depth, fig_wear = check_classification(classification_result)
111
- st.pyplot(fig_feed)
112
- st.pyplot(fig_depth)
113
- st.pyplot(fig_wear)
 
 
 
114
 
115
 
116
 
 
64
 
65
  def main():
66
 
 
 
 
67
  sprint_data_folder = "Messungen"
68
 
69
  sprint_csv_files = get_csv_files(sprint_data_folder)
 
101
  with col2:
102
  st.markdown("<h2 style='text-align: center; color: black; font-family:Arial;font-size:2rem;'>Auswertung</h2>", unsafe_allow_html=True)
103
 
104
+ try:
105
+ sliced_data = slice_data(selected_file)
106
+ recurrence_plot = create_recurrence_plot(sliced_data)
107
+ classification_result = classification(recurrence_plot)
108
+ fig_feed, fig_depth, fig_wear = check_classification(classification_result)
109
+ st.pyplot(fig_feed)
110
+ st.pyplot(fig_depth)
111
+ st.pyplot(fig_wear)
112
+ except:
113
+ pass
114
 
115
 
116