Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
e3665b6
1
Parent(s):
0cb3560
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,12 @@ account = get_default_account()
|
|
111 |
CLIENT.authenticate_with_token(token=speckleToken)
|
112 |
|
113 |
|
|
|
|
|
|
|
|
|
114 |
|
|
|
115 |
import logging
|
116 |
|
117 |
# Set up basic configuration for logging
|
@@ -121,15 +126,12 @@ logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %
|
|
121 |
logging.debug('About to start a potentially problematic operation...')
|
122 |
try:
|
123 |
# Potentially problematic code
|
124 |
-
|
125 |
-
matrices = fetchDistanceMatrices (stream_distance_matrices)
|
126 |
-
df_dm = distance_matrices[dm_activityNodes]
|
127 |
-
dm_dictionary = df_dm.to_dict('index')
|
128 |
|
129 |
except Exception as e:
|
130 |
logging.error(f"An error occurred: {e}")
|
131 |
raise
|
132 |
-
|
133 |
|
134 |
|
135 |
|
|
|
111 |
CLIENT.authenticate_with_token(token=speckleToken)
|
112 |
|
113 |
|
114 |
+
streamDistanceMatrices = speckle_utils.getSpeckleStream(streamId,branch_name_dm,CLIENT, commit_id_dm)
|
115 |
+
matrices = fetchDistanceMatrices (streamDistanceMatrices)
|
116 |
+
df_dm = distance_matrices[dm_activityNodes]
|
117 |
+
dm_dictionary = df_dm.to_dict('index')
|
118 |
|
119 |
+
"""
|
120 |
import logging
|
121 |
|
122 |
# Set up basic configuration for logging
|
|
|
126 |
logging.debug('About to start a potentially problematic operation...')
|
127 |
try:
|
128 |
# Potentially problematic code
|
129 |
+
|
|
|
|
|
|
|
130 |
|
131 |
except Exception as e:
|
132 |
logging.error(f"An error occurred: {e}")
|
133 |
raise
|
134 |
+
"""
|
135 |
|
136 |
|
137 |
|