Skip to content
Snippets Groups Projects
Commit d139f3ed authored by Anne Tipka's avatar Anne Tipka :headphones:
Browse files

in operational mode, we can not retrieve additional day for flux disaggregation, stick to end date

parent 12bedfd2
Branches
No related tags found
No related merge requests found
...@@ -297,10 +297,12 @@ def mk_dates(c, fluxes): ...@@ -297,10 +297,12 @@ def mk_dates(c, fluxes):
if c.purefc and fluxes and c.maxstep < 24: if c.purefc and fluxes and c.maxstep < 24:
start = start - timedelta(days=1) start = start - timedelta(days=1)
if not c.oper:
end = end + timedelta(days=1) end = end + timedelta(days=1)
if not c.purefc and fluxes and not c.basetime == 0: if not c.purefc and fluxes and not c.basetime == 0:
start = start - timedelta(days=1) start = start - timedelta(days=1)
if not c.oper:
end = end + timedelta(days=1) end = end + timedelta(days=1)
# if we have non-flux forecast data starting at 18 UTC # if we have non-flux forecast data starting at 18 UTC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment