Skip to content

Commit

Permalink
Ensure mrid is index in switch dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkleiven committed Apr 12, 2024
1 parent fdc694d commit 9504aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cimsparql/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def switches_query(self) -> str:

@time_it
def switches(self) -> SwitchesDataFrame:
df = self.get_table_and_convert(self.switches_query())
df = self.get_table_and_convert(self.switches_query(), index="mrid")
return SwitchesDataFrame(df)

def connectivity_nodes_query(self, region: str | None = None) -> str:
Expand Down

0 comments on commit 9504aa4

Please sign in to comment.