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

Commit 3fdd3c0

Browse files
Merge pull request #725 from openclimatefix/upgrade-dm
dm model 1.4.4, pv distnct data
2 parents 22b675a + 5a7a737 commit 3fdd3c0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

nowcasting_dataset/data_sources/pv/live.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ def get_pv_power_from_database(
117117

118118
with db_connection.get_session() as session:
119119
pv_yields: List[PVYieldSQL] = get_pv_yield(
120-
session=session, start_utc=start_utc_extra, correct_data=True, providers=providers
120+
session=session,
121+
start_utc=start_utc_extra,
122+
correct_data=True,
123+
providers=providers,
124+
distinct=True,
121125
)
122126

123127
logger.debug(f"Found {len(pv_yields)} PV yields from the database")

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pathy
2222
opencv-contrib-python-headless
2323
gitpython
2424
pyresample
25-
nowcasting_datamodel>=1.1.27
25+
nowcasting_datamodel>=1.4.4
2626
scipy
2727
pyaml_env
2828
fsspec==2023.1.0

0 commit comments

Comments
 (0)