Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Add comment about issue #664
Browse files Browse the repository at this point in the history
  • Loading branch information
JackKelly committed May 17, 2022
1 parent 16dabbf commit fba1505
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nowcasting_dataset/data_sources/pv/pv_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ def _load_pv_power(self):
logger.debug(f"Found {len(pv_power.columns)} pv power pv system ids from database")

# drop systems with over night power
# TODO: Fix bug!
# drop_pv_systems_which_produce_overnight expects normalised data,
# but it doesn't receive normalised data. See Issue #664.
pv_power = drop_pv_systems_which_produce_overnight(pv_power)

logger.debug(
Expand Down Expand Up @@ -501,7 +504,11 @@ def align_pv_system_ids(


def drop_pv_systems_which_produce_overnight(pv_power: pd.DataFrame) -> pd.DataFrame:
"""Drop systems which produce power over night."""
"""Drop systems which produce power over night.
Args:
pv_power: Normalised to [0, 1].
"""
# TODO: Of these bad systems, 24647, 42656, 42807, 43081, 51247, 59919
# might have some salvagable data?
NIGHT_YIELD_THRESHOLD = 0.4
Expand Down

0 comments on commit fba1505

Please sign in to comment.