openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

preload_children not working #48

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Describe the bug pre loading children doesnt get all child values

To Reproduce

Steps to reproduce the behavior:

from nowcasting_datamodel.read.read import get_all_gsp_ids_latest_forecast,

    forecasts = get_all_gsp_ids_latest_forecast(
        session=session,
        # preload_children=True,
    )

And turn on preloading

Expected behavior get all children 'ForecastValuesSQL' objects