Skip to content

Commit

Permalink
Merge pull request #691 from ekatef/fix_connect_costs_output
Browse files Browse the repository at this point in the history
Fix an output error for connections costs
  • Loading branch information
davide-f committed Apr 18, 2023
2 parents 3dd94b0 + 6ba7879 commit 309e837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/simplify_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ def simplify_links(n, costs, config, output, aggregation_strategies=dict()):
logger.info("Simplifying connected link components")

if n.links.empty:
with open(output.connection_costs, "w") as fp:
pass
return n, n.buses.index.to_series()

# Determine connected link components, ignore all links but DC
Expand Down

0 comments on commit 309e837

Please sign in to comment.