Skip to content

Commit 9b5152c

Browse files
committed
correct indents
1 parent a436025 commit 9b5152c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

climada/entity/exposures/black_marble.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import shutil
1010
import logging
1111
import math
12+
import warnings
1213
import numpy as np
1314
from scipy import ndimage
1415
import pandas as pd
1516
import requests
1617
import shapely.vectorized
1718
from cartopy.io import shapereader
1819
from iso3166 import countries as iso_cntry
19-
import warnings
2020

2121
from climada.entity.exposures.base import Exposures
2222
from climada.util.files_handler import download_file
@@ -295,6 +295,7 @@ def get_nightlight(ref_year, cntry_info, res_km, from_hr=None):
295295
req_files, nl_year)
296296
fn_nl = [file.replace('*', str(nl_year)) for idx, file \
297297
in enumerate(nl_utils.BM_FILENAMES) if req_files[idx]]
298+
fn_nl = ' + '.join(fn_nl)
298299
else:
299300
nl_year = ref_year
300301
if ref_year < 1992:
@@ -451,15 +452,15 @@ def _get_gdp(cntry_info, ref_year, shp_file):
451452
try:
452453
with warnings.catch_warnings():
453454
warnings.simplefilter("ignore")
454-
cntry_gdp = wb.download(indicator=wb_gdp_ind, country=cntry_iso,
455-
start=1960, end=2030)
455+
cntry_gdp = wb.download(indicator=wb_gdp_ind, \
456+
country=cntry_iso, start=1960, end=2030)
456457
years = np.array([int(year) \
457458
for year in cntry_gdp.index.get_level_values('year')])
458459
close_gdp = cntry_gdp.iloc[ \
459460
np.abs(years-ref_year).argsort()].dropna()
460461
close_gdp_val = float(close_gdp.iloc[0].values)
461462
LOGGER.info("GDP {} {:d}: {:.3e}.".format(cntry_iso, \
462-
int(close_gdp.iloc[0].name[1]), close_gdp_val))
463+
int(close_gdp.iloc[0].name[1]), close_gdp_val))
463464

464465
except (ValueError, IndexError, requests.exceptions.ConnectionError) \
465466
as err:

0 commit comments

Comments
 (0)