Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2024
1 parent 7513a04 commit 6fabdcc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/build_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
import requests
import xarray as xr
from _helpers import (
BASE_DIR,
configure_logging,
create_logger,
three_2_two_digits_country,
two_2_three_digits_country,
two_digits_2_name_country,
BASE_DIR
)
from numba import njit
from numba.core import types
Expand Down Expand Up @@ -584,9 +584,7 @@ def convert_GDP(name_file_nc, year=2015, out_logging=False):
GDP_nc = os.path.join(BASE_DIR, "data", "GDP", name_file_nc) # Input filepath nc

# path of the tif file
GDP_tif = os.path.join(
BASE_DIR, "data", "GDP", name_file_tif
) # Input filepath nc
GDP_tif = os.path.join(BASE_DIR, "data", "GDP", name_file_tif) # Input filepath nc

# Check if file exists, otherwise throw exception
if not os.path.exists(GDP_nc):
Expand Down Expand Up @@ -629,9 +627,7 @@ def load_GDP(

# path of the nc file
name_file_tif = name_file_nc[:-2] + "tif"
GDP_tif = os.path.join(
BASE_DIR, "data", "GDP", name_file_tif
) # Input filepath tif
GDP_tif = os.path.join(BASE_DIR, "data", "GDP", name_file_tif) # Input filepath tif

if update | (not os.path.exists(GDP_tif)):
if out_logging:
Expand Down

0 comments on commit 6fabdcc

Please sign in to comment.