Commit c2d041a6 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed bug: some tabs instead of spaces in GDE_check_consistency.py

parent 5999f08a
......@@ -127,10 +127,10 @@ def run_this_file(config_dict):
if len(country_admin_id_split)>1: # to get rid of "GR"
for occu in list(dfs_dict.keys()):
if len(country_admin_id_split)==2:
which= np.where(dfs_dict[occu]['id_'+str(admin_levels[occu])].values==int(country_admin_id_split[1]))[0]
else: # e.g. industrial 30-arcsec cells
country_admin_id_split_reconstruct = '_'.join(country_admin_id_split[1:])
which= np.where(dfs_dict[occu]['id_'+str(admin_levels[occu])].values==country_admin_id_split_reconstruct)[0]
which= np.where(dfs_dict[occu]['id_'+str(admin_levels[occu])].values==int(country_admin_id_split[1]))[0]
else: # e.g. industrial 30-arcsec cells
country_admin_id_split_reconstruct = '_'.join(country_admin_id_split[1:])
which= np.where(dfs_dict[occu]['id_'+str(admin_levels[occu])].values==country_admin_id_split_reconstruct)[0]
sera_num_bdgs_j= dfs_dict[occu]['buildings'].values[which].sum()
sera_num_dwells_j= dfs_dict[occu]['dwellings'].values[which].sum()
sera_num_ppl_j= dfs_dict[occu]['occupants_per_asset'].values[which].sum()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment