validation: download input data files instead
This commit is contained in:
parent
17f4c2ddb0
commit
62cb6fbdd8
Binary file not shown.
Binary file not shown.
@ -148,7 +148,6 @@ rule plot_elec_statistics:
|
|||||||
plotting=config["plotting"],
|
plotting=config["plotting"],
|
||||||
barplots=STATISTICS_BARPLOTS,
|
barplots=STATISTICS_BARPLOTS,
|
||||||
input:
|
input:
|
||||||
overrides="data/override_component_attrs",
|
|
||||||
network=RESULTS + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
|
network=RESULTS + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
|
||||||
output:
|
output:
|
||||||
**{
|
**{
|
||||||
|
@ -195,3 +195,43 @@ if config["enable"]["retrieve"]:
|
|||||||
retries: 2
|
retries: 2
|
||||||
run:
|
run:
|
||||||
move(input[0], output[0])
|
move(input[0], output[0])
|
||||||
|
|
||||||
|
|
||||||
|
if config["enable"]["retrieve"]:
|
||||||
|
|
||||||
|
rule retrieve_monthly_co2_prices:
|
||||||
|
input:
|
||||||
|
HTTP.remote(
|
||||||
|
"https://www.eex.com/fileadmin/EEX/Downloads/EUA_Emission_Spot_Primary_Market_Auction_Report/Archive_Reports/emission-spot-primary-market-auction-report-2019-data.xls",
|
||||||
|
keep_local=True,
|
||||||
|
static=True,
|
||||||
|
),
|
||||||
|
output:
|
||||||
|
"data/validation/emission-spot-primary-market-auction-report-2019-data.xls",
|
||||||
|
log:
|
||||||
|
LOGS + "retrieve_monthly_co2_prices.log",
|
||||||
|
resources:
|
||||||
|
mem_mb=5000,
|
||||||
|
retries: 2
|
||||||
|
run:
|
||||||
|
move(input[0], output[0])
|
||||||
|
|
||||||
|
|
||||||
|
if config["enable"]["retrieve"]:
|
||||||
|
|
||||||
|
rule retrieve_monthly_fuel_prices:
|
||||||
|
input:
|
||||||
|
HTTP.remote(
|
||||||
|
"https://www.destatis.de/EN/Themes/Economy/Prices/Publications/Downloads-Energy-Price-Trends/energy-price-trends-xlsx-5619002.xlsx?__blob=publicationFile",
|
||||||
|
keep_local=True,
|
||||||
|
static=True,
|
||||||
|
),
|
||||||
|
output:
|
||||||
|
"data/validation/energy-price-trends-xlsx-5619002.xls",
|
||||||
|
log:
|
||||||
|
LOGS + "retrieve_monthly_fuel_prices.log",
|
||||||
|
resources:
|
||||||
|
mem_mb=5000,
|
||||||
|
retries: 2
|
||||||
|
run:
|
||||||
|
move(input[0], output[0])
|
||||||
|
@ -483,7 +483,7 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
n_clusters = int(snakemake.wildcards.clusters)
|
n_clusters = int(snakemake.wildcards.clusters)
|
||||||
|
|
||||||
if params.cluster_network["consider_efficiency_classes"]:
|
if params.cluster_network.get("consider_efficiency_classes", False):
|
||||||
carriers = []
|
carriers = []
|
||||||
for c in aggregate_carriers:
|
for c in aggregate_carriers:
|
||||||
gens = n.generators.query("carrier == @c")
|
gens = n.generators.query("carrier == @c")
|
||||||
|
@ -17,7 +17,7 @@ if __name__ == "__main__":
|
|||||||
from _helpers import mock_snakemake
|
from _helpers import mock_snakemake
|
||||||
|
|
||||||
snakemake = mock_snakemake(
|
snakemake = mock_snakemake(
|
||||||
"plot_statistics",
|
"plot_elec_statistics",
|
||||||
simpl="",
|
simpl="",
|
||||||
opts="Ept-12h",
|
opts="Ept-12h",
|
||||||
clusters="37",
|
clusters="37",
|
||||||
|
Loading…
Reference in New Issue
Block a user