Skip to content

Commit bf23664

Browse files
authored
Add Historical OSM Data Test Configuration (#27)
* Add historical OSM data test configuration * Add historical test entry to obj_ref.csv * Update historical test objective value in obj_ref.csv
1 parent 5122c97 commit bf23664

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ test:
1313
snakemake solve_all_networks -call --configfile config.tutorial.yaml configs/scenarios/config.NG.yaml
1414
snakemake solve_all_networks_monte -call --configfile config.tutorial.yaml test/config.monte_carlo.yaml
1515
snakemake solve_all_networks -call --configfile config.tutorial.yaml test/config.landlock.yaml
16+
snakemake solve_all_networks -call --configfile config.tutorial.yaml test/config.historical.yaml
1617
snakemake -c4 solve_sector_networks --configfile config.tutorial.yaml test/config.sector.yaml
1718
snakemake -c4 solve_sector_networks_myopic --configfile config.tutorial.yaml test/config.myopic.yaml
1819
echo "All tests completed successfully."
@@ -27,6 +28,7 @@ clean:
2728
snakemake -j1 solve_all_networks --delete-all-output --configfile config.tutorial.yaml configs/scenarios/config.NG.yaml
2829
snakemake -j1 solve_all_networks_monte --delete-all-output --configfile test/config.monte_carlo.yaml
2930
snakemake -j1 run_all_scenarios --delete-all-output --configfile test/config.landlock.yaml
31+
snakemake -j1 solve_all_networks --delete-all-output --configfile config.tutorial.yaml test/config.historical.yaml
3032
snakemake -j1 solve_sector_networks --delete-all-output --configfile test/config.sector.yaml
3133
snakemake -j1 solve_sector_networks_myopic --delete-all-output --configfile config.tutorial.yaml test/config.myopic.yaml
3234
echo "Clean-up complete."

test/config.historical.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
### TEST CONFIG FOR HISTORICAL OSM DATA FEATURE ###
6+
version: 0.7.0
7+
8+
run:
9+
name: "historical_test"
10+
shared_cutouts: true # set to true to share the default cutout(s) across runs
11+
base_config: config.tutorial.yaml # base configuration file
12+
13+
enable:
14+
retrieve_cost_data: false
15+
16+
# OpenStreetMap (OSM) data configuration - testing historical feature
17+
osm_data:
18+
source: "historical" # Test the historical data download feature
19+
target_date: "2020-01-01" # Use a specific historical date for testing

test/utils/obj_ref.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
folder,file,objective
66
tutorial,elec_s_6_ec_lcopt_Co2L-4H_python.log,2839036244.0
77
custom,elec_s_6_ec_lcopt_Co2L-4H_python.log,2669287067.0
8+
historical_test,elec_s_6_ec_lcopt_Co2L-4H_python.log,3153.56
89
NG,elec_s_5_ec_lcopt_Co2L-4H_python.log,2671484779.0
910
monte-carlo,elec_s_6_ec_lcopt_Co2L-4H_m0_python.log,1825115005.0
1011
monte-carlo,elec_s_6_ec_lcopt_Co2L-4H_m1_python.log,10092009600.0

0 commit comments

Comments
 (0)