Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def preprocess_net(net, every_min, input_data_resolution=5):
"""
# Remove all loads modelled in PyPSA
# and create one single agg_load.
net.mremove('Load', names=net.loads.index)
net.remove('Load', name=net.loads.index)
net.add('Load', name='agg_load', bus=net.buses.index.tolist()[0])
# Adapt ramps according to the skipping time
# configured to run the OPF.
Expand Down