Skip to content

Commit

Permalink
fix: set bus_id index name (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenhagg authored Dec 7, 2022
1 parent c3a806c commit 74422ce
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 @@ -276,7 +276,7 @@ def _add_bus(self):
lat, lon = entry["lat"], entry["lon"]
new_bus["lat"] = lat
new_bus["lon"] = lon
new_bus_index = [self.grid.bus.index.max() + 1]
new_bus_index = pd.Index([self.grid.bus.index.max() + 1], name="bus_id")
self.grid.bus = pd.concat(
[self.grid.bus, pd.DataFrame(new_bus, index=new_bus_index)]
)
Expand Down

0 comments on commit 74422ce

Please sign in to comment.