Skip to content
Snippets Groups Projects
Commit 7838e3fe authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

u

parent 4af520a3
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,10 @@ func forecast(ctx common.DawnCtx, gddReq models.GddRequest, plantdate time.Time, ...@@ -147,6 +147,10 @@ func forecast(ctx common.DawnCtx, gddReq models.GddRequest, plantdate time.Time,
lastDist = dist lastDist = dist
} }
if currentMatch == len(keys) {
return out
}
// adjust cfs values to start at the accumulated value // adjust cfs values to start at the accumulated value
adjustedCfs := calculateAccumulatedCfsBasedOnAccumulatedObserved(product, accumulatedGdds, cfs) adjustedCfs := calculateAccumulatedCfsBasedOnAccumulatedObserved(product, accumulatedGdds, cfs)
cfsHist := getDatesForCfsMatches(adjustedCfs, date, currentMatch, keys, matches) cfsHist := getDatesForCfsMatches(adjustedCfs, date, currentMatch, keys, matches)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment