comparison pkg/controllers/fwa.go @ 5258:b373213d8e7c new-fwa

Assume that the decision if a day is below LDC is only possible if there are values. If there are none assume its over LDC.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 13 May 2020 14:19:01 +0200
parents ed62f138528a
children b3b990811f2c
comparison
equal deleted inserted replaced
5257:0446a6e230b4 5258:b373213d8e7c
377 result := bns[i].measurements.classify( 377 result := bns[i].measurements.classify(
378 current, next, 378 current, next,
379 ldc.value, 379 ldc.value,
380 (*availMeasurement).getValue) 380 (*availMeasurement).getValue)
381 381
382 if result[1] < 12*time.Hour { 382 if (result[0] != 0 || result[1] != 0) && result[1] < 12*time.Hour {
383 overLDC = false 383 overLDC = false
384 } 384 }
385 } 385 }
386 386
387 if min := minClass(bns[i].measurements.classify( 387 if min := minClass(bns[i].measurements.classify(