Skip to content

Commit

Permalink
Compatibility with city_IO updates
Browse files Browse the repository at this point in the history
  • Loading branch information
doorleyr committed Jun 2, 2020
1 parent e78982d commit b3cad93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion indicator_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def load_patent_data(self,pop_th=100000):
def flatten_grid_cell_attributes(type_def, height, attribute_name,
area_per_floor, return_units='capacity'):
if isinstance(height, list):
height=height[1]
height=height[-1]
grid_cell_total={}
if type_def[attribute_name] is not None:
if 'sqm_pperson' in type_def:
Expand Down
2 changes: 2 additions & 0 deletions toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ def assign_geogrid_props(self, handler):
'''
geogrid_props = handler.geogrid_props
self.types_def = geogrid_props['types']
if 'static_types' in geogrid_props:
self.types_def.update(geogrid_props['static_types'])
self.geogrid_header = geogrid_props['header']

def restructure(self,geogrid_data):
Expand Down

0 comments on commit b3cad93

Please sign in to comment.