Bug: horizon minutes not working with latest forecast #105
Replies: 1 comment
-
|
As I understand it, the issue is that for latest forecasts we currently only constrain init_time_utc by the pivot timestamp, so the horizon isn’t actually enforced for future targets. Subtracting horizon_mins from the pivot would ensure that only forecasts initialized far enough back are eligible, which matches the expected definition of horizon. So This makes sense to me. One thing I wanted to double-check: is pivot_timestamp always representing the target time we’re anchoring the horizon against (rather than request time)? A small follow-up idea (optional): would it be worth explicitly handling horizon_mins IS NULL in the query (i.e. keeping current behaviour in that case), to make the semantics a bit clearer and avoid subtle differences later? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently when pulling a forecast using
dp.GetForecastAsTimeseriesRequestand usinghorizon_mins=120is no different fromhorizon_mins=Nonefor future timestamps. For past forecasts it is different.I think we need to do change this line
from
to
Beta Was this translation helpful? Give feedback.
All reactions