Closedown

This commit is contained in:
gobbo_a
2017-05-05 10:17:23 +02:00
parent e212aed88f
commit e3e0f85f3c
+3
View File
@@ -31,8 +31,10 @@ def blm_remove_spikes(x):
print ("B")
for i in range(x.size-3):
if d_x[i+1] > 0.5 * maximum and d_x[i+2] < -0.5 * maximum:
print ("E")
# 1 point spike
x[i+2] = (x[i:i+5].sum() - x[i+2])/4
print ("F")
if d_x[i+1] > 0.5 * maximum and d_x[i+2] >= -0.5 * maximum:
# 2 point spikes
@@ -41,6 +43,7 @@ def blm_remove_spikes(x):
x[i+3] = (x[i+1] + x[i+4:i+6].sum())/3
print ("D")
# Handle edge points
print ("G")
if d_x[-1] > 0.5 * maximum:
x[-1] = x[-3:-1].sum() / 2