Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Oct 24, 2023
1 parent 1bd354b commit 9cc3e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edisgo/flex_opt/reinforce_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def reinforce_grid(
use_troubleshooting_mode=kwargs.get("use_troubleshooting_mode", True),
run_initial_analyze=kwargs.get("run_initial_analyze", True),
)
if len(timesteps_pfa) == 0:
if timesteps_pfa is not None and len(timesteps_pfa) == 0:
logger.debug("Zero time steps for grid reinforcement.")
return edisgo.results

Expand Down

0 comments on commit 9cc3e67

Please sign in to comment.