Skip to content

Commit

Permalink
fix: re-changing GenMWMax to Pmax in design_transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Feb 6, 2020
1 parent 48287f9 commit 69762c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion powersimdata/input/design_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _find_capacity_at_bus(plant, bus_id, gentypes):
gentype_plants = plant[plant['type'].isin(gentypes)]
at_bus = gentype_plants['bus_id'] == bus_id
gentype_plants_at_bus = gentype_plants[at_bus]
gentype_capacity = gentype_plants_at_bus['GenMWMax'].sum()
gentype_capacity = gentype_plants_at_bus['Pmax'].sum()

return gentype_capacity

Expand Down
2 changes: 1 addition & 1 deletion powersimdata/input/tests/test_design_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
'plant_id': ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
'bus_id': [1, 1, 5, 7, 7, 7, 8],
'type': ['solar', 'coal', 'wind', 'solar', 'solar', 'ng', 'wind'],
'GenMWMax': [15, 30, 10, 12, 8, 20, 15]
'Pmax': [15, 30, 10, 12, 8, 20, 15]
}

mock_grid = MockGrid(
Expand Down

0 comments on commit 69762c1

Please sign in to comment.