Update bias substraction

This commit is contained in:
linarphy 2023-06-26 11:47:04 +02:00
parent 22f629d580
commit b328f30618
No known key found for this signature in database
GPG key ID: 3D4AAAC3AD16E79C

10
ETA.py
View file

@ -607,6 +607,14 @@ bias = {
mean_bias = np.mean( [ bias[ 'top' ] , bias[ 'down' ] ] , axis = 0 ) mean_bias = np.mean( [ bias[ 'top' ] , bias[ 'down' ] ] , axis = 0 )
data[
: ,
border[ 'x' ][ 'min' ] : border[ 'x' ][ 'max' ]
] = data[
: ,
border[ 'x' ][ 'min' ] : border[ 'x' ][ 'max' ]
] - mean_bias
if verbose: if verbose:
print( 'bias substraction finished' ) print( 'bias substraction finished' )
print( 'starting to flatten the ETA' ) print( 'starting to flatten the ETA' )
@ -619,7 +627,7 @@ list_ = np.convolve(
border[ 'x' ][ 'min' ] : border[ 'x' ][ 'max' ] border[ 'x' ][ 'min' ] : border[ 'x' ][ 'max' ]
] , ] ,
axis = 1, axis = 1,
) - mean_bias, ),
) , ) ,
np.ones( 50 ), np.ones( 50 ),
'same' , 'same' ,