From 321e96cec5ea6e41c616bff5efa6b805f08bb35f Mon Sep 17 00:00:00 2001 From: Aryan Bhosale <36108149+aryanbhosale@users.noreply.github.com> Date: Sun, 25 Feb 2024 14:13:14 +0530 Subject: [PATCH] current timestamp rounded down to 15 minutes as the default/custom value --- quartz_solar_forecast/forecast.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/quartz_solar_forecast/forecast.py b/quartz_solar_forecast/forecast.py index 2251cd05..9e32c0e7 100644 --- a/quartz_solar_forecast/forecast.py +++ b/quartz_solar_forecast/forecast.py @@ -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 """ @@ -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 - -