Update bias substraction
This commit is contained in:
parent
c47445c719
commit
0f7e074770
1 changed files with 22 additions and 6 deletions
26
ETA.py
26
ETA.py
|
@ -588,8 +588,8 @@ if verbose:
|
|||
bias = {
|
||||
'top': np.mean(
|
||||
data[
|
||||
calibrations[ 'top' ][ 'y' ][ 'min' ] - 100 :
|
||||
calibrations[ 'top' ][ 'y' ][ 'min' ] ,
|
||||
calibrations[ 'top' ][ 'y' ][ 'min' ] :
|
||||
calibrations[ 'top' ][ 'y' ][ 'min' ] - 500,
|
||||
calibrations[ 'top' ][ 'x' ][ 'min' ] :
|
||||
calibrations[ 'top' ][ 'x' ][ 'max' ]
|
||||
] ,
|
||||
|
@ -597,8 +597,8 @@ bias = {
|
|||
),
|
||||
'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[
|
||||
: ,
|
||||
|
|
Loading…
Reference in a new issue