From 44a220333b2c35fde6a4c7c38f5de45fe2655e37 Mon Sep 17 00:00:00 2001 From: birgits Date: Mon, 23 Oct 2023 16:59:45 +0200 Subject: [PATCH] Bug fix add parameters when function is called --- edisgo/tools/temporal_complexity_reduction.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/edisgo/tools/temporal_complexity_reduction.py b/edisgo/tools/temporal_complexity_reduction.py index 9703a157e..8c29aa586 100644 --- a/edisgo/tools/temporal_complexity_reduction.py +++ b/edisgo/tools/temporal_complexity_reduction.py @@ -716,7 +716,13 @@ def get_most_critical_time_steps( # Run power flow if run_initial_analyze: if use_troubleshooting_mode: - edisgo_obj = _troubleshooting_mode(edisgo_obj, timesteps=timesteps) + edisgo_obj = _troubleshooting_mode( + edisgo_obj, + mode=mode, + timesteps=timesteps, + lv_grid_id=lv_grid_id, + scale_timeseries=scale_timeseries, + ) else: logger.debug( "Running initial power flow for temporal complexity reduction."