Skip to content

Commit

Permalink
Update connectivity.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 29, 2024
1 parent 31ad69b commit 0c73fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xcp_d/interfaces/connectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def flatten_conmat(df):
df.columns = ["Row", "Column", "Value"]
df["Edge"] = df["Row"] + "-" + df["Column"]
df = df.set_index("Edge")
df = df[["Edge", "Value"]].T
df = df[["Value"]].T
return df


Expand Down Expand Up @@ -857,7 +857,7 @@ def _run_interface(self, runtime):
df.columns = ["Row", "Column", "Value"]
df["Edge"] = df["Row"] + "-" + df["Column"]
df = df.set_index("Edge")
df = df[["Edge", "Value"]].T
df = df[["Value"]].T
elif self.inputs.kind == "labels":
df = pd.read_table(in_file)
df = pd.DataFrame(
Expand Down

0 comments on commit 0c73fee

Please sign in to comment.