@@ 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 |
@@ 799-819 (lines=21) @@ | ||
796 | ||
797 | dataset = config.settings()["egon-data"]["--dataset-boundary"] |
|
798 | ||
799 | if dataset == "Schleswig-Holstein": |
|
800 | sources = config.datasets()["scenario_input"]["sources"] |
|
801 | ||
802 | path = Path( |
|
803 | f"./data_bundle_egon_data/nep2035_version2021/" |
|
804 | f"{sources['eGon2035']['capacities']}" |
|
805 | ).resolve() |
|
806 | ||
807 | total_2035 = ( |
|
808 | pd.read_excel( |
|
809 | path, |
|
810 | sheet_name="1.Entwurf_NEP2035_V2021", |
|
811 | index_col="Unnamed: 0", |
|
812 | ).at["PV (Aufdach)", "Summe"] |
|
813 | * 1000 |
|
814 | ) |
|
815 | sh_2035 = scenario_data(scenario="eGon2035").capacity.sum() |
|
816 | ||
817 | share = sh_2035 / total_2035 |
|
818 | ||
819 | target *= share |
|
820 | ||
821 | assert isclose( |
|
822 | target, |