Skip to content

Commit

Permalink
small import bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
khelfen committed Nov 14, 2024
1 parent 7fe6e5d commit 82ffeb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/egon/data/datasets/data_bundle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def download():
shutil.rmtree(powerd_data_bundle_path)

url = f"""https://zenodo.org/record/{sources['deposit_id_powerd']}/files/data_bundle_powerd_data.zip"""
target_file = egon.data.config.datasets()["data-bundle"]["targets"]["file_powerd"]
target_file = config.datasets()["data-bundle"]["targets"]["file_powerd"]

# check if file exists
if not Path(target_file).exists():
Expand All @@ -57,10 +57,10 @@ def download():

class DataBundle(Dataset):
def __init__(self, dependencies):
deposit_id = egon.data.config.datasets()["data-bundle"]["sources"][
deposit_id = config.datasets()["data-bundle"]["sources"][
"zenodo"
]["deposit_id"]
deposit_id_powerd = egon.data.config.datasets()["data-bundle"]["sources"][
deposit_id_powerd = config.datasets()["data-bundle"]["sources"][
"zenodo"
]["deposit_id"]
super().__init__(
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/sanity_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
load_building_data,
scenario_data,
)
from egon.data.datasets.pypsaeursec import read_network
from egon.data.datasets.pypsaeur import read_network
from egon.data.datasets.scenario_parameters import get_sector_parameters
from egon.data.datasets.storages.home_batteries import get_cbat_pbat_ratio
import egon.data
Expand Down

0 comments on commit 82ffeb9

Please sign in to comment.