Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert John committed Oct 18, 2024
1 parent 93d2d6f commit 6a2dee3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/egon/data/datasets/ch4_storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,14 @@ def import_installed_ch4_storages(scn_name):
usecols=["lat", "long", "country_code", "param"],
)
except Exception:
target_file = (
Path(".") / "gas_data" / "data" / "IGGIELGN_Storages.csv"
)
import os

target_file = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"gas_data", "data", "IGGIELGN_Storages.csv")
print("target_file", target_file)

assert os.path.isfile(target_file), f"target_file {target_file} does not exist."

Gas_storages_list = pd.read_csv(
target_file,
delimiter=";",
Expand Down

0 comments on commit 6a2dee3

Please sign in to comment.