This commit is contained in:
linarphy 2023-05-15 17:01:19 +02:00
parent 15325e0e8f
commit 44d0769b27
No known key found for this signature in database
GPG key ID: 3D4AAAC3AD16E79C

17
ETA.py
View file

@ -314,23 +314,6 @@ fall = np.array( [
) for consecutive in fall
] ).astype( int )
"""
plt.imshow( results , aspect = 'auto' )
plt.hlines( fall , 0 , size )
plt.show()
"""
temp = np.convolve( results[ : , 10000 ] , np.ones( 50 ) , 'same' )
for i in range( len( fall ) - 1 ):
temp[ fall[ i ] : fall[ i + 1 ] ] = np.mean( temp[ fall[ i ] : fall[ i + 1 ] ] )
plt.plot( temp )
plt.plot(
np.convolve(
results[ : , 10000 ],
np.ones( 50 ) ,
'same' ,
),
)
plt.vlines( fall , 0 , 50 , colors = 'red' )
plt.show()