From f50460c20ebb4b474f53728c80997e70230668bd Mon Sep 17 00:00:00 2001 From: birgits Date: Wed, 18 Oct 2023 14:47:52 +0200 Subject: [PATCH] Bug fix pop fails when timesteps_pfa is not provided --- edisgo/flex_opt/reinforce_grid.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/edisgo/flex_opt/reinforce_grid.py b/edisgo/flex_opt/reinforce_grid.py index 18680bc57..eaf387107 100644 --- a/edisgo/flex_opt/reinforce_grid.py +++ b/edisgo/flex_opt/reinforce_grid.py @@ -699,8 +699,7 @@ def reinforce(): logger.debug("Start 'catch-convergence' reinforcement.") # Get the timesteps from kwargs and then remove it to set it later manually - timesteps_pfa = kwargs.get("timesteps_pfa") - kwargs.pop("timesteps_pfa") + timesteps_pfa = kwargs.pop("timesteps_pfa", None) selected_timesteps = timesteps_pfa # Initial try