Skip to content

Commit

Permalink
current timestamp rounded down to 15 minutes as the default/custom value
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbhosale authored Feb 25, 2024
1 parent 9ab2446 commit 321e96c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions quartz_solar_forecast/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@

from quartz_solar_forecast.forecasts.v1 import forecast_v1



def run_forecast(site: PVSite, ts: datetime | str = None, nwp_source: str = "icon") -> pd.DataFrame:
"""
Run the forecast from NWP data
:param site: the PV site
:param ts: the timestamp of the site
:param ts: the timestamp of the site. If None, defaults to the current timestamp rounded down to 15 minutes.
:param nwp_source: the nwp data source. Either "gfs" or "icon". Defaults to "icon"
:return: The PV forecast of the site for time (ts) for 48 hours
"""
Expand All @@ -35,5 +33,3 @@ def run_forecast(site: PVSite, ts: datetime | str = None, nwp_source: str = "ico
pred_df = forecast_v1(nwp_source, nwp_xr, pv_xr, ts)

return pred_df


0 comments on commit 321e96c

Please sign in to comment.