masstable/masstable.py
def ds2p(self):
        """Calculates the derivative of the neutron separation energies:

        ds2n(Z,A) = s2n(Z,A) - s2n(Z,A+2)
        """
        idx = [(x[0] + 2, x[1]) for x in self.df.index]
        values = self.s2p.values - self.s2p.loc[idx].values
        return Table(df=pd.Series(values, index=self.df.index, name='ds2p' + '(' + self.name + ')'))
def ds2p(self):
        """Calculates the derivative of the neutron separation energies:

        ds2n(Z,A) = s2n(Z,A) - s2n(Z,A+2)
        """
        idx = [(x[0] + 2, x[1]) for x in self.df.index]
        values = self.s2p.values - self.s2p.loc[idx].values
        return Table(df=pd.Series(values, index=self.df.index, name='ds2p' + '(' + self.name + ')'))
def ds2p ( self ) : idx = [ ( x [ 0 ] + 2 , x [ 1 ] ) for x in self . df . index ] values = self . s2p . values - self . s2p . loc [ idx ] . values return Table ( df = pd . Series ( values , index = self . df . index , name = 'ds2p' + '(' + self . name + ')' ) )
Calculates the derivative of the neutron separation energies:

        ds2n(Z,A) = s2n(Z,A) - s2n(Z,A+2)
Calculates the derivative of the neutron separation energies :