Skip to content

Commit

Permalink
fix: correct bug when MW-mesh scaling with existing ct
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Apr 7, 2020
1 parent 6826b6a commit 32ff8b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion powersimdata/input/design_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def _identify_mesh_branch_upgrades(ref_scenario, upgrade_n=100, quantile=0.95,
except KeyError:
branch_ct = {}
branch_prev_scaling = pd.Series(
{i: ref_ct[i] if i in branch_ct else 1 for i in congested_indices})
{i: (branch_ct[i] if i in branch_ct else 1)
for i in congested_indices})
branch_ratings = branch_ratings / branch_prev_scaling
if method == 'MW':
branch_metric = quantile_cong_abs / branch_ratings
Expand Down

0 comments on commit 32ff8b4

Please sign in to comment.