File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
nowcasting_datamodel/models Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ def convert_df_to_national_forecast(
103
103
if "forecast_mw_plevel_10" in forecast_values_df .columns :
104
104
forecast_value_sql .properties = {
105
105
"10" : forecast_value .forecast_mw_plevel_10 ,
106
+ }
107
+
108
+ if "forecast_mw_plevel_90" in forecast_values_df .columns :
109
+ forecast_value_sql .properties = {
106
110
"90" : forecast_value .forecast_mw_plevel_90 ,
107
111
}
108
112
Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ class ForecastValue(EnhancedBaseModel):
318
318
"The _ at the start means it is not expose in the API" ,
319
319
)
320
320
321
+ # This its better to keep this out of the current pydantic models used by the API.
322
+ # A new pydantic mode can be made that includes the forecast plevels, perhaps in the API.
321
323
_properties : dict = Field (
322
324
None ,
323
325
description = "Dictionary to hold properties of the forecast, like p_levels. "
You can’t perform that action at this time.
0 commit comments