Only use increasing temperature values.
This commit is contained in:
1 parent
c74cbe329d
commit
2b188237bb
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -82,7 +82,9 @@
|
||||
|
||||
<div class='row' id='plotly-plot'></div>
|
||||
|
||||
<div class='debug'>
|
||||
{{ debug }}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
Reference in new issue
Block a user