diff --git a/ETA.py b/ETA.py index 5e1d19f..f900137 100755 --- a/ETA.py +++ b/ETA.py @@ -588,17 +588,17 @@ if verbose: bias = { 'top': np.mean( data[ - calibrations[ 'top' ][ 'y' ][ 'min' ] - 100 : - calibrations[ 'top' ][ 'y' ][ 'min' ] , - calibrations[ 'top' ][ 'x' ][ 'min' ] : + calibrations[ 'top' ][ 'y' ][ 'min' ] : + calibrations[ 'top' ][ 'y' ][ 'min' ] - 500, + calibrations[ 'top' ][ 'x' ][ 'min' ] : calibrations[ 'top' ][ 'x' ][ 'max' ] ] , axis = 0, ), 'down': np.mean( data[ - calibrations[ 'down' ][ 'y' ][ 'min' ] - 100: - calibrations[ 'down' ][ 'y' ][ 'min' ] , + calibrations[ 'down' ][ 'y' ][ 'min' ] - 500: + calibrations[ 'down' ][ 'y' ][ 'min' ] - 100, calibrations[ 'down' ][ 'x' ][ 'min' ] : calibrations[ 'down' ][ 'x' ][ 'max' ] ] , @@ -606,7 +606,23 @@ bias = { ), } -mean_bias = bias[ 'down' ] +mean_bias = sp_convolve( + np.mean( + [ + bias[ 'down' ] , + bias[ 'down' ], + ] , + axis = 0, + ) , + np.ones( + ( + 50, + ), + ) , + 'same' , +) / 50 + +print( 'mean_bias ETA: ' + str( mean_bias ) ) data[ : ,