Skip to content

Commit

Permalink
style: add return types of functions
Browse files Browse the repository at this point in the history
Co-Authored-By: Francesco Sanvito <68587472+FraSanvit@users.noreply.github.com>
  • Loading branch information
adrienmellot and FraSanvit committed May 14, 2024
1 parent 0832b0e commit 5d5b4eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/transport/road_transport_controlled_charging.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def convert_annual_distance_to_electricity_demand(
final_year: int,
conversion_factors: dict[str, float],
country_codes: list[str],
):
) -> pd.DataFrame:
"""
Convert annual distance driven demand to electricity demand for
controlled charging accounting for conversion factors.
Expand Down Expand Up @@ -73,7 +73,7 @@ def extract_national_ev_charging_potentials(
conversion_factors: dict[str, float],
battery_sizes: dict[str, float],
country_codes: list[str],
):
) -> pd.DataFrame:
# Extract number of EVs per vehicle type
df_ev_numbers = (
pd.read_csv(path_to_ev_numbers, index_col=[0, 1, 2, 3, 4])
Expand Down
2 changes: 1 addition & 1 deletion scripts/transport/road_transport_controlled_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_national_ev_profiles(
final_year: int,
country_neighbour_dict: dict[str, list[str]],
country_codes: list[str],
):
) -> pd.DataFrame:
df_timeseries = (
pd.read_csv(ev_profiles_path, index_col=[0, 1, 2], parse_dates=[0])
.xs(slice(first_year, final_year), level="year")
Expand Down

0 comments on commit 5d5b4eb

Please sign in to comment.