Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes/#360 do not drop foreign biogas buses #370

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/egon/data/datasets/pypsaeur/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class RunPypsaEur(Dataset):
def __init__(self, dependencies):
super().__init__(
name="SolvePypsaEur",
version="0.0.39",
version="0.0.40",
dependencies=dependencies,
tasks=(
prepare_network_2,
Expand Down Expand Up @@ -819,7 +819,7 @@ def neighbor_reduction():

# Correct geometry for non AC buses
carriers = set(neighbors.carrier.to_list())
carriers = [e for e in carriers if e not in ("AC", "biogas")]
carriers = [e for e in carriers if e not in ("AC")]
non_AC_neighbors = pd.DataFrame()
for c in carriers:
c_neighbors = neighbors[neighbors.carrier == c].set_index(
Expand Down Expand Up @@ -1076,9 +1076,7 @@ def links_to_etrago(neighbor_links, scn="eGon100RE", extendable=True):
excluded_carriers = [
"gas for industry CC",
"SMR CC",
"biogas to gas",
"DAC",
"electricity distribution grid",
]
neighbor_links = neighbor_links[
~neighbor_links.carrier.isin(excluded_carriers)
Expand Down
Loading