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 Jun 20, 2024
1 parent c6aee39 commit a6a9d67
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/prepare_gas_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,9 @@ def get_GADM_layer(
)

if layer_id == 0:
geodf_temp["GADM_ID"] = (
geodf_temp[f"GID_{cur_layer_id}"] +
pd.Series(range(1, geodf_temp.shape[0]+1)).astype(str)
)
geodf_temp["GADM_ID"] = geodf_temp[f"GID_{cur_layer_id}"] + pd.Series(
range(1, geodf_temp.shape[0] + 1)
).astype(str)
else:
# create a subindex column that is useful
# in the GADM processing of sub-national zones
Expand Down

0 comments on commit a6a9d67

Please sign in to comment.