File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
nowcasting_datamodel/read Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,27 @@ def get_latest_forecast_for_gsps(
214
214
historic : bool = False ,
215
215
gsp_ids : List [int ] = None ,
216
216
):
217
+ """
218
+ Read forecasts
219
+
220
+ :param session: database session
221
+ :param start_created_utc: Filter: forecast creation time should be larger than this datetime
222
+ :param start_target_time:
223
+ Filter: forecast values target time should be larger than this datetime
224
+ :param preload_children: Option to preload children. This is a speed up, if we need them.
225
+ :param historic: Option to load historic values or not
226
+ :param gsp_ids: Option to filter on gsps. If None, then only the lastest forecast is loaded.
227
+
228
+ return: List of forecasts objects from database
229
+
230
+ :param session:
231
+ :param start_created_utc:
232
+ :param start_target_time:
233
+ :param preload_children:
234
+ :param historic:
235
+ :param gsp_ids:
236
+ :return:
237
+ """
217
238
order_by_cols = []
218
239
219
240
# start main query
You can’t perform that action at this time.
0 commit comments