Delete bias dark display
This commit is contained in:
parent
bdc8a82ded
commit
6e59db3214
1 changed files with 2 additions and 13 deletions
15
spectrum.py
15
spectrum.py
|
@ -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' )
|
||||
|
||||
|
|
Loading…
Reference in a new issue