Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
8d439a2
1
Parent(s):
f836d27
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def test(input_json):
|
|
100 |
|
101 |
|
102 |
|
103 |
-
"""
|
104 |
# List containing the substrings to check against
|
105 |
tranportModes = ["DRT", "GMT", "HSR"]
|
106 |
|
@@ -112,13 +112,12 @@ def test(input_json):
|
|
112 |
for mode in tranportModes:
|
113 |
if mode in key: # Check if the substring is in the dictionary key
|
114 |
result_dict[substring][key] = value
|
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 |
|
123 |
# create a mask based on the matrix size and ids, crop activity nodes to the mask
|
124 |
mask_connected = df_matrix.index.tolist()
|
|
|
100 |
|
101 |
|
102 |
|
103 |
+
"""
|
104 |
# List containing the substrings to check against
|
105 |
tranportModes = ["DRT", "GMT", "HSR"]
|
106 |
|
|
|
112 |
for mode in tranportModes:
|
113 |
if mode in key: # Check if the substring is in the dictionary key
|
114 |
result_dict[substring][key] = value
|
|
|
115 |
|
116 |
art = result_dict["DRT"]
|
117 |
|
118 |
df_art_matrix = pd.DataFrame(art).T
|
119 |
df_art_matrix = df_art_matrix.round(0).astype(int)
|
120 |
+
"""
|
121 |
|
122 |
# create a mask based on the matrix size and ids, crop activity nodes to the mask
|
123 |
mask_connected = df_matrix.index.tolist()
|