Skip to content

Commit

Permalink
Bug fix pop fails when timesteps_pfa is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Oct 18, 2023
1 parent 8df403d commit f50460c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions edisgo/flex_opt/reinforce_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f50460c

Please sign in to comment.