Skip to content

Commit d292c1c

Browse files
committed
final book chapter commit
1 parent b11ef73 commit d292c1c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

network/components/res.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def add_generators_from_file(net: pypsa.Network, technologies: List[str], use_ex
5353
countries = list(net.buses.country.dropna())
5454

5555
# Load site data
56-
resite_data_path = f"{data_path}../../resite_ip/output/APPLEN/{sites_dir}/"
56+
resite_data_path = f"{data_path}../../resite_ip/output/{sites_dir}/"
5757
resite_data_fn = join(resite_data_path, sites_fn)
5858
tech_points_cap_factor_df = pickle.load(open(resite_data_fn, "rb"))
5959

projects/tyndp2018/config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ solver_options:
1717

1818
# Time
1919
time:
20-
slice: ['2018-01-01T00:00', '2018-01-31T23:00']
20+
slice: ['2017-01-01T00:00', '2019-12-31T23:00']
2121
resolution: 1
22-
downsampling: 3
22+
downsampling: 1
2323

2424
# Space
2525
region: "EU"
@@ -30,7 +30,7 @@ res:
3030
# Give which technology should be installed using each strategy
3131
techs: ['wind_onshore', 'wind_offshore', 'pv_utility', 'pv_residential']
3232
strategies:
33-
from_file: ['wind_onshore']
33+
from_files: ['wind_onshore']
3434
bus: ['wind_offshore', 'pv_utility', 'pv_residential']
3535

3636
min_cap_pot: [0., 0., 0., 0.]

projects/tyndp2018/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import logging
2020
logging.basicConfig(level=logging.INFO, format=f"%(levelname)s %(name) %(asctime)s - %(message)s")
21-
# logging.disable(logging.CRITICAL)
21+
logging.disable(logging.CRITICAL)
2222
logger = logging.getLogger(__name__)
2323

2424
NHoursPerYear = 8760.
@@ -45,7 +45,7 @@ def parse_args():
4545
# Main directories
4646
data_dir = f"{data_path}"
4747
tech_dir = f"{data_path}technologies/"
48-
output_dir = f"{data_path}../output/BOOK/{strftime('%Y%m%d_%H%M%S')}/"
48+
output_dir = f"{data_path}../output/{strftime('%Y%m%d_%H%M%S')}/"
4949

5050
# Run config
5151
config_fn = join(dirname(abspath(__file__)), 'config.yaml')
@@ -133,7 +133,7 @@ def parse_args():
133133
logger.info(f"Adding RES {technologies} generation with strategy {strategy}.")
134134

135135
if strategy == "from_files":
136-
net = add_res_from_file(net, technologies,
136+
net = add_res_from_file(net, technologies, config['res']['use_ex_cap'],
137137
config['res']['sites_dir'], config['res']['sites_fn'],
138138
config['res']['spatial_resolution'],
139139
tech_config)

0 commit comments

Comments
 (0)