Skip to content

Commit

Permalink
fix: use max id for storage id, not plant shape
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Feb 3, 2021
1 parent 48a94d7 commit 8ab8e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powersimdata/input/transform_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _add_gencost(self):

def _add_storage(self):
"""Adds storage to the grid."""
first_storage_id = self.grid.plant.shape[0] + 1
first_storage_id = self.grid.plant.index.max() + 1
for i, entry in enumerate(self.ct["storage"]):
storage_id = first_storage_id + i
self._add_storage_unit(entry)
Expand Down

0 comments on commit 8ab8e84

Please sign in to comment.