Baseline subtraction is doing an unallowed cast by using the inplace operator "-=" on int16 arrays (If it is an ADC_Result, or single scan Accumulation) and subtracting the mean (float) from it.
This is a mandatory TypeErrror since numpy 1.10.0. This fixes 22.
This commit is contained in:
@@ -63,7 +63,7 @@ class DamarisFFT:
|
||||
# Heuer, A; Haeberlen, U.: J. Mag. Res.(1989) 85, Is 1, 79-94
|
||||
n = int( self.x.size * last_part )
|
||||
for ch in range( len( self.y ) ):
|
||||
self.y[ ch ] -= self.y[ ch ][ -n: ].mean( )
|
||||
self.y[ ch ] = self.y[ ch ] - self.y[ ch ][ -n: ].mean( )
|
||||
return self
|
||||
|
||||
def exp_window( self, line_broadening=10 ):
|
||||
|
||||
Reference in New Issue
Block a user