Update saturation value
This commit is contained in:
parent
b0c3e18b55
commit
3a33fbe422
1 changed files with 7 additions and 4 deletions
11
spectrum.py
11
spectrum.py
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue