Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install masstable

How to install masstable

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install masstable
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.1.7 Available View build log
 
License
MIT
Dependencies
Imports
Lastest release
version 0.1.7 on Jan 9th, 2014

The Nuclear Mass Table Toolkit provides utilities to work with nuclear mass tables. At the moment the following tables are supported:

  • AME2003: G. Audi, H. Wapstra, C. Thibault, Nucl. Phys. A 729 (2003) 337
  • AME2003all: Same as above but including interpolated("#") values
  • AME2012: G. Audi et al, Chinese Physics C. 36, No. 12(2012)
  • AME2012all: Same as above but including interpolated("#") values
  • AME1995: Audi, G., and A. H. Wapstra, Nuclear Physics A 595.4 (1995): 409-480
  • AME1995all: Same as above but including interpolated("#") values
  • DUZU: J. Duflo, A.P. Zuker, Phys. Rev. C 52 (1995)
  • FRDM95: Moller, P. et al., At. Data and Nuc. Data Tables 59 (1995) 185
  • KTUY05: H. Koura, T.Tachibana, M. Uno, M. Yamada, Progr. Theor. Phys. 113 (2005) 305
  • ETFSI12: Y. Aboussir et al., At. Data Nucl. Data Tables 61 (1995) 127
  • HFB14: S. Goriely, M. Samyn, J.M. Pearson, Phys. Rev. C 75 (2007) 064312

Usage:

  • Print first 5 elements from Audi 2003:

System Message: ERROR/3 (<string>, line 24)

Unknown directive type "code-block".

.. code-block:: python

        >>> from masstable import Table
        >>> Table('AME2003').head()
        Z  N
        0  1     8.07132
        1  0     7.28897
           1    13.13570
           2    14.94980
           3    25.90150


  • Calculate the root mean squared error of Moller, et al. Atomic Data and Nuclear Data Tables, 59 (1995), 185-351.

System Message: ERROR/3 (<string>, line 38)

Unknown directive type "code-block".

.. code-block:: python

        >>> Table('FRDM95').rmse(relative_to='AME2003')
        0.890859326191

  • Calculate 2 neutron separation energies for even-even nuclei:

System Message: ERROR/3 (<string>, line 45)

Unknown directive type "code-block".

.. code-block:: python

        >>> table = Table('AME2012').even_even.s2n
        Z  N
        2  2           NaN
           4      0.975454
           6      2.125034
           8     -1.417666
        4  2           NaN
               ...

  • Select nuclei with Z,N > 28:

System Message: ERROR/3 (<string>, line 58)

Unknown directive type "code-block".

.. code-block:: python

        >>> condition = lambda Z,N: Z > 28 and N > 28
        >>> table.select(condition)
        30  30    28.016334
            32    23.136434
            34    20.978934
            36    19.037934
            38    17.250334
            40    15.700534
               ...

  • Plot binding energies per nucleon:

System Message: ERROR/3 (<string>, line 72)

Unknown directive type "code-block".

.. code-block:: python

        >>> t = Table('AME2012')
        >>> (t.binding_energy/t.A).plot()

http://i.imgur.com/eKX5S8M.png

Install

Just do:

pip install masstable

Requirements

  • python >= 2.7
  • pandas >= 0.11

Credits

Yaser Martinez

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.