Skip to content

Commit

Permalink
Merge pull request #1 from sin/feature/fix-paths-unix
Browse files Browse the repository at this point in the history
Replace Windows backslashes with forward slashes in paths to make it work on Unix systems
  • Loading branch information
patryk-kubiczek authored Mar 23, 2023
2 parents 331bc5d + a25bb3f commit dda3c39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/capacity_factors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd
from scripts.create_date_index import create_date_index

capacity_factors_excel_dir = 'inputs\\capacity_factors.xlsx'
capacity_factors_excel_dir = 'inputs/capacity_factors.xlsx'


def assign_capacity_factor_based_on_voivodeship(df_original, index_date, points_in_vois):
Expand Down
2 changes: 1 addition & 1 deletion scripts/lines_buses.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_lines_between_buses(year, df_buses, save_directory):
buses = df_buses['name'].to_list()

# Create lines between buses but only for existing ones
df_lines = pd.read_excel('inputs\\lines.xlsx', sheet_name=str(year), index_col=0)
df_lines = pd.read_excel('inputs/lines.xlsx', sheet_name=str(year), index_col=0)
df_lines['bus0'] = df_lines['bus0'].astype(str)
df_lines['bus1'] = df_lines['bus1'].astype(str)
df_lines = df_lines[(df_lines['bus0'].isin(buses)) & (df_lines['bus1'].isin(buses))]
Expand Down

0 comments on commit dda3c39

Please sign in to comment.