Skip to content

Commit 9a994c1

Browse files
committed
add function description
1 parent 20c2003 commit 9a994c1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

nowcasting_datamodel/read/read.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,27 @@ def get_latest_forecast_for_gsps(
214214
historic: bool = False,
215215
gsp_ids: List[int] = None,
216216
):
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+
"""
217238
order_by_cols = []
218239

219240
# start main query

0 commit comments

Comments
 (0)