Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
aa33587
1
Parent(s):
821b607
Update app.py
Browse files
app.py
CHANGED
@@ -105,6 +105,11 @@ from config import landuseDatabaseId , streamId, branch_name_dm, commit_id_dm
|
|
105 |
#from imports_utils import streamMatrices
|
106 |
from imports_utils import speckleToken
|
107 |
from imports_utils import fetchDistanceMatrices
|
|
|
|
|
|
|
|
|
|
|
108 |
|
109 |
CLIENT = SpeckleClient(host="https://speckle.xyz/")
|
110 |
account = get_default_account()
|
@@ -113,7 +118,7 @@ CLIENT.authenticate_with_token(token=speckleToken)
|
|
113 |
|
114 |
streamDistanceMatrices = speckle_utils.getSpeckleStream(streamId,branch_name_dm,CLIENT, commit_id_dm)
|
115 |
matrices = fetchDistanceMatrices (streamDistanceMatrices)
|
116 |
-
df_dm = matrices[
|
117 |
dm_dictionary = df_dm.to_dict('index')
|
118 |
|
119 |
"""
|
|
|
105 |
#from imports_utils import streamMatrices
|
106 |
from imports_utils import speckleToken
|
107 |
from imports_utils import fetchDistanceMatrices
|
108 |
+
from config import distanceMatrixActivityNodes
|
109 |
+
from config import distanceMatrixTransportStops
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
|
114 |
CLIENT = SpeckleClient(host="https://speckle.xyz/")
|
115 |
account = get_default_account()
|
|
|
118 |
|
119 |
streamDistanceMatrices = speckle_utils.getSpeckleStream(streamId,branch_name_dm,CLIENT, commit_id_dm)
|
120 |
matrices = fetchDistanceMatrices (streamDistanceMatrices)
|
121 |
+
df_dm = matrices[distanceMatrixActivityNodes]
|
122 |
dm_dictionary = df_dm.to_dict('index')
|
123 |
|
124 |
"""
|