Skip to content

Commit

Permalink
Merge pull request #304 from openego/fixes/#280-validate-egon100_miss…
Browse files Browse the repository at this point in the history
…ing-cossborder-lines

fixes/#280-validate-egon100_missing-cossborder-lines
  • Loading branch information
CarlosEpia authored Sep 9, 2024
2 parents bfef8ab + 2c5cabe commit 37e7e89
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 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.7",
version="0.0.8",
dependencies=dependencies,
tasks=(
execute,
Expand Down Expand Up @@ -357,23 +357,28 @@ def clean_database():
WHERE "bus0" IN (
SELECT bus_id FROM grid.egon_etrago_bus
WHERE country != 'DE'
AND scn_name = '{scn_name}')
AND scn_name = '{scn_name}'
AND bus_id NOT IN (SELECT bus_i FROM osmtgmod_results.bus_data))
AND "bus1" IN (
SELECT bus_id FROM grid.egon_etrago_bus
WHERE country != 'DE'
AND scn_name = '{scn_name}')
AND scn_name = '{scn_name}'
AND bus_id NOT IN (SELECT bus_i FROM osmtgmod_results.bus_data))
);
DELETE FROM {"grid.egon_etrago_" + comp}
WHERE scn_name = '{scn_name}'
AND "bus0" IN (
SELECT bus_id FROM grid.egon_etrago_bus
WHERE country != 'DE'
AND scn_name = '{scn_name}')
AND scn_name = '{scn_name}'
AND bus_id NOT IN (SELECT bus_i FROM osmtgmod_results.bus_data))
AND "bus1" IN (
SELECT bus_id FROM grid.egon_etrago_bus
WHERE country != 'DE'
AND scn_name = '{scn_name}')
AND scn_name = '{scn_name}'
AND bus_id NOT IN (SELECT bus_i FROM osmtgmod_results.bus_data))
;"""
)

Expand Down

0 comments on commit 37e7e89

Please sign in to comment.