| @@ 163-183 (lines=21) @@ | ||
| 160 | ||
| 161 | dataset = config.settings()["egon-data"]["--dataset-boundary"] |
|
| 162 | ||
| 163 | if dataset == "Schleswig-Holstein": |
|
| 164 | sources_scn = config.datasets()["scenario_input"]["sources"] |
|
| 165 | ||
| 166 | path = Path( |
|
| 167 | f"./data_bundle_egon_data/nep2035_version2021/" |
|
| 168 | f"{sources_scn['eGon2035']['capacities']}" |
|
| 169 | ).resolve() |
|
| 170 | ||
| 171 | total_2035 = ( |
|
| 172 | pd.read_excel( |
|
| 173 | path, |
|
| 174 | sheet_name="1.Entwurf_NEP2035_V2021", |
|
| 175 | index_col="Unnamed: 0", |
|
| 176 | ).at["PV (Aufdach)", "Summe"] |
|
| 177 | * 1000 |
|
| 178 | ) |
|
| 179 | sh_2035 = scenario_data(scenario="eGon2035").capacity.sum() |
|
| 180 | ||
| 181 | share = sh_2035 / total_2035 |
|
| 182 | ||
| 183 | target *= share |
|
| 184 | ||
| 185 | demand["share_country"] = demand.demand / demand.demand.sum() |
|
| 186 | ||
| @@ 774-794 (lines=21) @@ | ||
| 771 | ||
| 772 | dataset = config.settings()["egon-data"]["--dataset-boundary"] |
|
| 773 | ||
| 774 | if dataset == "Schleswig-Holstein": |
|
| 775 | sources = config.datasets()["scenario_input"]["sources"] |
|
| 776 | ||
| 777 | path = Path( |
|
| 778 | f"./data_bundle_egon_data/nep2035_version2021/" |
|
| 779 | f"{sources['eGon2035']['capacities']}" |
|
| 780 | ).resolve() |
|
| 781 | ||
| 782 | total_2035 = ( |
|
| 783 | pd.read_excel( |
|
| 784 | path, |
|
| 785 | sheet_name="1.Entwurf_NEP2035_V2021", |
|
| 786 | index_col="Unnamed: 0", |
|
| 787 | ).at["PV (Aufdach)", "Summe"] |
|
| 788 | * 1000 |
|
| 789 | ) |
|
| 790 | sh_2035 = scenario_data(scenario="eGon2035").capacity.sum() |
|
| 791 | ||
| 792 | share = sh_2035 / total_2035 |
|
| 793 | ||
| 794 | target *= share |
|
| 795 | ||
| 796 | assert isclose( |
|
| 797 | target, |
|