Delete bias dark display

This commit is contained in:
linarphy 2023-07-12 16:22:26 +02:00
parent bdc8a82ded
commit 6e59db3214
No known key found for this signature in database
GPG key ID: 3D4AAAC3AD16E79C

View file

@ -560,7 +560,7 @@ if verbose:
bias = {
'top': np.mean(
data[
calibrations[ 'top' ][ 'y' ][ 'min' ] - 100 :
calibrations[ 'top' ][ 'y' ][ 'min' ] - 200 :
calibrations[ 'top' ][ 'y' ][ 'min' ] ,
calibrations[ 'top' ][ 'x' ][ 'min' ] :
calibrations[ 'top' ][ 'x' ][ 'max' ]
@ -570,7 +570,7 @@ bias = {
'down': np.mean(
data[
calibrations[ 'down' ][ 'y' ][ 'max' ] :
calibrations[ 'down' ][ 'y' ][ 'max' ] + 100,
calibrations[ 'down' ][ 'y' ][ 'max' ] + 200,
calibrations[ 'down' ][ 'x' ][ 'min' ] :
calibrations[ 'down' ][ 'x' ][ 'max' ]
] ,
@ -580,17 +580,6 @@ bias = {
mean_bias = np.mean( [ bias[ 'top' ] , bias[ 'down' ] ] , axis = 0 )
plt.imshow(
data[
calibrations[ 'down' ][ 'y' ][ 'max' ] :
calibrations[ 'down' ][ 'y' ][ 'max' ] + 200,
calibrations[ 'down' ][ 'x' ][ 'min' ] :
calibrations[ 'down' ][ 'x' ][ 'max' ]
] ,
aspect = 'auto',
)
plt.show()
if verbose:
print( 'bias substraction finished' )