latools/D_obj.py
def bkg_subtract(self, analyte, bkg, ind=None, focus_stage='despiked'):
        """
        Subtract provided background from signal (focus stage).

        Results is saved in new 'bkgsub' focus stage

        Returns
        -------
        None
        """
        if 'bkgsub' not in self.data.keys():
            self.data['bkgsub'] = Bunch()

        self.data['bkgsub'][analyte] = self.data[focus_stage][analyte] - bkg

        if ind is not None:
            self.data['bkgsub'][analyte][ind] = np.nan

        return
def bkg_subtract(self, analyte, bkg, ind=None, focus_stage='despiked'):
        """
        Subtract provided background from signal (focus stage).

        Results is saved in new 'bkgsub' focus stage

        Returns
        -------
        None
        """
        if 'bkgsub' not in self.data.keys():
            self.data['bkgsub'] = Bunch()

        self.data['bkgsub'][analyte] = self.data[focus_stage][analyte] - bkg

        if ind is not None:
            self.data['bkgsub'][analyte][ind] = np.nan

        return
def bkg_subtract ( self , analyte , bkg , ind = None , focus_stage = 'despiked' ) : if 'bkgsub' not in self . data . keys ( ) : self . data [ 'bkgsub' ] = Bunch ( ) self . data [ 'bkgsub' ] [ analyte ] = self . data [ focus_stage ] [ analyte ] - bkg if ind is not None : self . data [ 'bkgsub' ] [ analyte ] [ ind ] = np . nan return
Subtract provided background from signal (focus stage).

        Results is saved in new 'bkgsub' focus stage

        Returns
        -------
        None
Subtract provided background from signal ( focus stage ) .