Update bias substraction
This commit is contained in:
parent
22f629d580
commit
b328f30618
1 changed files with 9 additions and 1 deletions
10
ETA.py
10
ETA.py
|
@ -607,6 +607,14 @@ bias = {
|
|||
|
||||
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:
|
||||
print( 'bias substraction finished' )
|
||||
print( 'starting to flatten the ETA' )
|
||||
|
@ -619,7 +627,7 @@ list_ = np.convolve(
|
|||
border[ 'x' ][ 'min' ] : border[ 'x' ][ 'max' ]
|
||||
] ,
|
||||
axis = 1,
|
||||
) - mean_bias,
|
||||
),
|
||||
) ,
|
||||
np.ones( 50 ),
|
||||
'same' ,
|
||||
|
|
Loading…
Reference in a new issue