Skip to content

Commit

Permalink
Merge pull request #429 from nnhjy/master
Browse files Browse the repository at this point in the history
update deprecated syntax
  • Loading branch information
FabianHofmann authored Sep 29, 2022
2 parents ee8f502 + d29441d commit faba4f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plot_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def plot_costs(infn, config, fn=None):

print(df.sum())

new_index = (preferred_order & df.index).append(
new_index = (preferred_order.intersection(df.index)).append(
df.index.difference(preferred_order)
)

Expand Down Expand Up @@ -149,7 +149,7 @@ def plot_energy(infn, config, fn=None):

print(df.sum())

new_index = (preferred_order & df.index).append(
new_index = (preferred_order.intersection(df.index)).append(
df.index.difference(preferred_order)
)

Expand Down

0 comments on commit faba4f1

Please sign in to comment.