From 0619bdd00c27836a1725471a3fbc5713f0d7db5f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 1 Feb 2025 10:37:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pvliveconsumer/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pvliveconsumer/app.py b/pvliveconsumer/app.py index f4844ea..89b4c5e 100644 --- a/pvliveconsumer/app.py +++ b/pvliveconsumer/app.py @@ -248,12 +248,9 @@ def pull_data_and_save( current_installed_capacity = gsp_yield_sql.location.installed_capacity_mw new_installed_capacity = float(gsp_yield_df["installedcapacity_mwp"].iloc[0]) if current_installed_capacity != new_installed_capacity: - # dont update if new_installed_capacity is nan if np.isnan(new_installed_capacity): - logger.debug( - f"New installed capacity is nan, will not update the capacity" - ) + logger.debug("New installed capacity is nan, will not update the capacity") else: logger.debug( f"Going to update the capacity from "