From 740bb39492b05a62e072c3669096584c77450924 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:59:48 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/gsp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gsp.py b/src/gsp.py index e341bf6..b87dc83 100644 --- a/src/gsp.py +++ b/src/gsp.py @@ -108,9 +108,7 @@ def get_all_available_forecasts( # adjust gsp_id 0 idx = [ - i - for i, forecasts in enumerate(forecasts.forecasts) - if forecasts.location.gsp_id == 0 + i for i, forecasts in enumerate(forecasts.forecasts) if forecasts.location.gsp_id == 0 ] if len(idx) > 0: logger.info(f"Adjusting forecast values for gsp id 0, {adjust_limit}")