nastasiasnk commited on
Commit
1598fe9
1 Parent(s): ee817ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -115,11 +115,13 @@ def test(input_json):
115
 
116
 
117
  art = result_dict["DRT"]
118
-
119
-
120
  df_art_matrix = pd.DataFrame(art).T
121
  df_art_matrix = df_art_matrix.round(0).astype(int)
122
 
 
 
 
123
 
124
  # create a mask based on the matrix size and ids, crop activity nodes to the mask
125
  mask_connected = df_matrix.index.tolist()
 
115
 
116
 
117
  art = result_dict["DRT"]
118
+
 
119
  df_art_matrix = pd.DataFrame(art).T
120
  df_art_matrix = df_art_matrix.round(0).astype(int)
121
 
122
+ if df_art_matrix.empty():
123
+ print("transport matrix is empty")
124
+
125
 
126
  # create a mask based on the matrix size and ids, crop activity nodes to the mask
127
  mask_connected = df_matrix.index.tolist()