Ignore temp drop after 3 regular high temps

This commit is contained in:
Julia Friesel committed 2018-10-01 18:58:02 +02:00
1 parent 17bb23fd91
commit 61275e83a0
3 files changed
+23 -3

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ function checkIfFirstHighMeasurement(temp, i, temperatureDays, ltl) {
const nextDaysAfterPotentialFhm = temperatureDays.slice(i + 1, i + 4)
return (
getResultForRegularRule(nextDaysAfterPotentialFhm, ltl)) ||
getResultForRegularRule(nextDaysAfterPotentialFhm.slice(0, 2), ltl)) ||
getResultForFirstExceptionRule(nextDaysAfterPotentialFhm, ltl) ||
getResultForSecondExceptionRule(nextDaysAfterPotentialFhm, ltl) ||
{ detected: false }