Update saturation value

This commit is contained in:
linarphy 2023-06-29 15:25:04 +02:00
parent b0c3e18b55
commit 3a33fbe422
No known key found for this signature in database
GPG key ID: 3D4AAAC3AD16E79C

View file

@ -561,6 +561,7 @@ bias = {
} }
mean_bias = np.mean( [ bias[ 'top' ] , bias[ 'down' ] ] , axis = 0 ) mean_bias = np.mean( [ bias[ 'top' ] , bias[ 'down' ] ] , axis = 0 )
mean_bias = 0
if verbose: if verbose:
print( 'bias substraction finished' ) print( 'bias substraction finished' )
@ -649,16 +650,18 @@ if intensity != None:
)[0] )[0]
if len( indexes_stair_higher ) == 0: # intensity value outside ETA (upper) 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 continue
if len( indexes_stair_higher ) - 1 != indexes_stair_higher[-1]: # stairs intensity does not decrease with index as it should if len( indexes_stair_higher ) - 1 != indexes_stair_higher[-1]: # stairs intensity does not decrease with index as it should
indexes_stair_higher = [ indexes_stair_higher = [
int( np.mean( int( np.mean(
[ [
indexes_stair_higher[ - 1 ] , indexes_stair_higher[ - 1 ] ,
len( indexes_stair_higher ) - 1 len( indexes_stair_higher ) - 1,
] ],
) ) ) ),
] ]
indexes_stair_higher = [ indexes_stair_higher = [
indexes_stair_lower[ 0 ] - 1, indexes_stair_lower[ 0 ] - 1,