Skip to content

Commit

Permalink
Fix double space in existing capacities
Browse files Browse the repository at this point in the history
The `name_suffix` variable already includes a space after the bus name.
  • Loading branch information
koen-vg committed Apr 25, 2024
1 parent c505ea1 commit a4a2af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_existing_baseyear.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
n.madd(
"Generator",
new_capacity.index,
suffix=" " + name_suffix,
suffix=name_suffix,
bus=new_capacity.index,
carrier=generator,
p_nom=new_capacity,
Expand Down

0 comments on commit a4a2af5

Please sign in to comment.