Commit b2bd7a61 authored by 舒皓月's avatar 舒皓月

20200526_0

parent dc19e802
...@@ -123,8 +123,10 @@ class VLMMonitor: ...@@ -123,8 +123,10 @@ class VLMMonitor:
''' '''
if type(x) != list: if type(x) != list:
x = x.values.tolist() x = x.values.tolist()
x = [i for i in x if i != 0]
n = len(x) n = len(x)
if n < 10:
return 'no trend', False, 1, 0
# calculate S # calculate S
s = 0 s = 0
for k in range(n - 1): for k in range(n - 1):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment