From 6e59db32143978b6d9409bd2a9425041a77cd6eb Mon Sep 17 00:00:00 2001 From: linarphy Date: Wed, 12 Jul 2023 16:22:26 +0200 Subject: [PATCH] Delete bias dark display --- spectrum.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/spectrum.py b/spectrum.py index 2e222ea..e765508 100755 --- a/spectrum.py +++ b/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' )