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 12, 2024
1 parent b8e719b commit d5dae19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ rule prepare_ports:

rule prepare_airports:
params:
airport_sizing_factor= config["sector"]["airport_sizing_factor"],
airport_sizing_factor=config["sector"]["airport_sizing_factor"],
output:
ports="data/airports.csv", # TODO move from data to resources
script:
Expand Down
4 changes: 3 additions & 1 deletion scripts/prepare_airports.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def download_airports():

df.insert(2, "airport_size_nr", 1)
df.loc[df["type"].isin(["medium_airport"]), "airport_size_nr"] = 1
df.loc[df["type"].isin(["large_airport"]), "airport_size_nr"] = snakemake.params.airport_sizing_factor
df.loc[
df["type"].isin(["large_airport"]), "airport_size_nr"
] = snakemake.params.airport_sizing_factor

# Calculate the number of total airports size
df1 = df.copy()
Expand Down

0 comments on commit d5dae19

Please sign in to comment.