Only use increasing temperature values.

This commit is contained in:
mattbk
2017-11-28 03:45:44 +00:00
parent c74cbe329d
commit 2b188237bb
2 changed files with 3 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def history():
# Calculate streak lengths. Based on https://stackoverflow.com/a/33403822/2152245.
def streak_lengths(x):
# find the boundaries where numbers are not consecutive
boundaries = [i for i in range(1, len(x)) if x[i] < x[i-1]]
boundaries = [i for i in range(1, len(x)) if x[i] <= x[i-1]]
# add the start and end boundaries
boundaries = [0] + boundaries + [len(x)]
# take the boundaries as pairwise slices

View File

@ -82,7 +82,9 @@
<div class='row' id='plotly-plot'></div>
<div class='debug'>
{{ debug }}
</div>
</body>