Update bias area

This commit is contained in:
linarphy 2023-06-29 11:28:39 +02:00
parent b3edfb3aee
commit b0c3e18b55
No known key found for this signature in database
GPG key ID: 3D4AAAC3AD16E79C

5
ETA.py
View file

@ -551,6 +551,7 @@ if calibration != None:
calibrations[ 'top' ][ 'x' ][ 'min' ] + list_same[0] calibrations[ 'top' ][ 'x' ][ 'min' ] + list_same[0]
] ]
i += len( list_same ) i += len( list_same )
calibrations[ 'top' ][ 'x' ][ 'max' ] -= padding calibrations[ 'top' ][ 'x' ][ 'max' ] -= padding
calibrations[ 'down' ][ 'x' ][ 'max' ] -= padding calibrations[ 'down' ][ 'x' ][ 'max' ] -= padding
border[ 'x' ][ 'max' ] -= padding border[ 'x' ][ 'max' ] -= padding
@ -596,8 +597,8 @@ bias = {
), ),
'down': np.mean( 'down': np.mean(
data[ data[
calibrations[ 'down' ][ 'y' ][ 'max' ] : calibrations[ 'down' ][ 'y' ][ 'min' ] - 100:
calibrations[ 'down' ][ 'y' ][ 'max' ] + 100, calibrations[ 'down' ][ 'y' ][ 'min' ] ,
calibrations[ 'down' ][ 'x' ][ 'min' ] : calibrations[ 'down' ][ 'x' ][ 'min' ] :
calibrations[ 'down' ][ 'x' ][ 'max' ] calibrations[ 'down' ][ 'x' ][ 'max' ]
] , ] ,