nastasiasnk commited on
Commit
ea91bd2
·
verified ·
1 Parent(s): 157cf08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -132,11 +132,18 @@ def test(input_json):
132
 
133
 
134
  # Accessing input data from Grasshopper
 
135
 
136
- matrix = inputs['input']["matrix"]
137
- landuses = inputs['input']["landuse_areas"]
138
- transport_matrix = inputs['input']["transportMatrix"]
139
-
 
 
 
 
 
 
140
  #attributeMapperDict = inputs['input']["attributeMapperDict"]
141
  #landuseMapperDict = inputs['input']["landuseMapperDict"]
142
 
 
132
 
133
 
134
  # Accessing input data from Grasshopper
135
+
136
 
137
+ if df_dm is None:
138
+ df_dm = inputs['input']["matrix"]
139
+
140
+ if df_dm_transport is None:
141
+ df_dm_transport = inputs['input']["transportMatrix"]
142
+
143
+ """
144
+ if df_lu_filtered is None:
145
+ landuses = inputs['input']["landuse_areas"]
146
+ """
147
  #attributeMapperDict = inputs['input']["attributeMapperDict"]
148
  #landuseMapperDict = inputs['input']["landuseMapperDict"]
149