Skip to content

Commit

Permalink
improve logging; ensure kba path is string to replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert John committed Oct 18, 2024
1 parent f56db0d commit 396e6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/egon/data/datasets/ch4_storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def import_installed_ch4_storages(scn_name):

target_file = os.path.dirname(os.path.abspath(__file__))
print("0 target_file", target_file)
for segment in target_file.split(os.sep):
print(segment)
target_file = os.path.join(target_file, "gas_data", "data", "IGGIELGN_Storages.csv")
print("1 target_file", target_file)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def read_kba_data(year=None):
"sources"]["KBA"]["file_processed"]
if year:
try:
print("p", p, "type p", type(p))
p = str(p)
p.replace("YEAR", "2020")
return pd.read_csv(p)
except Exception as E:
Expand Down

0 comments on commit 396e6db

Please sign in to comment.