From d29441d8714aef1bf5c4b50f83e8d4426fbe156d Mon Sep 17 00:00:00 2001 From: nnhjy Date: Wed, 28 Sep 2022 20:33:50 +0200 Subject: [PATCH] update deprecated syntax --- scripts/plot_summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plot_summary.py b/scripts/plot_summary.py index c48571baf..c05db561e 100644 --- a/scripts/plot_summary.py +++ b/scripts/plot_summary.py @@ -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) ) @@ -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) )