Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 1, 2025
1 parent 3e89d37 commit 0619bdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pvliveconsumer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 0619bdd

Please sign in to comment.