masstable/masstable.py
def at(self, nuclei):
        """Return a selection of the Table at positions given by ``nuclei``

        Parameters
        ----------
        nuclei: list of tuples
            A list where each element is tuple of the form (Z,N)

        Example
        -------
        Return binding energies at magic nuclei:

        >>> magic_nuclei = [(20,28), (50,50), (50,82), (82,126)]
        >>> Table('AME2012').binding_energy.at(magic_nuclei)
        Z   N
        20  28      416.014215
        50  50      825.325172
            82     1102.876416
        82  126    1636.486450
        """
        index = pd.MultiIndex.from_tuples(nuclei, names=['Z', 'N'])
        return Table(df=self.df.ix[index], name=self.name)
def at(self, nuclei):
        index = pd.MultiIndex.from_tuples(nuclei, names=['Z', 'N'])
        return Table(df=self.df.ix[index], name=self.name)
def at ( self , nuclei ) : index = pd . MultiIndex . from_tuples ( nuclei , names = [ 'Z' , 'N' ] ) return Table ( df = self . df . ix [ index ] , name = self . name )
Return a selection of the Table at positions given by ``nuclei``

        Parameters
        ----------
        nuclei: list of tuples
            A list where each element is tuple of the form (Z,N)

        Example
        -------
        Return binding energies at magic nuclei:

        >>> magic_nuclei = [(20,28), (50,50), (50,82), (82,126)]
        >>> Table('AME2012').binding_energy.at(magic_nuclei)
        Z   N
        20  28      416.014215
        50  50      825.325172
            82     1102.876416
        82  126    1636.486450
Return a selection of the Table at positions given by nuclei