From 3a33fbe422ccdcb732ad72815343929a0af58363 Mon Sep 17 00:00:00 2001 From: linarphy Date: Thu, 29 Jun 2023 15:25:04 +0200 Subject: [PATCH] Update saturation value --- spectrum.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spectrum.py b/spectrum.py index cc09692..4503252 100755 --- a/spectrum.py +++ b/spectrum.py @@ -561,6 +561,7 @@ bias = { } mean_bias = np.mean( [ bias[ 'top' ] , bias[ 'down' ] ] , axis = 0 ) +mean_bias = 0 if verbose: print( 'bias substraction finished' ) @@ -649,16 +650,18 @@ if intensity != None: )[0] if len( indexes_stair_higher ) == 0: # intensity value outside ETA (upper) - final_intensity[ index ] = intensity_stairs.shape[0] * step + final_intensity[ index ] = np.exp( + step * intensity_stairs.shape[0] + ) continue if len( indexes_stair_higher ) - 1 != indexes_stair_higher[-1]: # stairs intensity does not decrease with index as it should indexes_stair_higher = [ int( np.mean( [ indexes_stair_higher[ - 1 ] , - len( indexes_stair_higher ) - 1 - ] - ) ) + len( indexes_stair_higher ) - 1, + ], + ) ), ] indexes_stair_higher = [ indexes_stair_lower[ 0 ] - 1,