Skip to main content

Nuclear Masses

PyPI Python Version

Unit Tests codecov Read the Docs

DOI

Introduction

The package nuclearmasses provides convenient Python access to nuclear data published by the Atomic Mass Evaluation (AME) and NUBASE. These datasets are published in different, specialised formats, so nuclearmasses does the hard work of parsing and combining the data into a pandas DateFrame, making it simple to query and compare nuclear properties across different evaluations.

No guarantee is supplied with regards to the accuracy of the data presented. Estimated values are included, please always refer to the original sources. All data should, however, be accurate.

Documentation is here - https://nuclearmasses.readthedocs.io/

As a brief example, the combination of AME and NUBASE values from all years is available as a single DateFrame

>>> from nuclearmasses.mass_table import MassTable
>>> df = MassTable().data

You can then interrogate, or extract, whatever information you want. For example, how has the mass excess and its accuracy changed overtime for 190Re according to the AME

>>> df[(df['A'] == 190) & (df['Symbol'] == 'Re')][['TableYear', 'AMEMassExcess', 'AMEMassExcessError']]
       TableYear  AMEMassExcess  AMEMassExcessError
16054       1983     -35536.605             200.029
16055       1993     -35557.789             145.549
16056       1995     -35568.032             212.151
16057       2003     -35566.326             149.248
16058       2012     -35634.992              70.542
16059       2016     -35635.830              70.852
16060       2020     -35583.015               4.870

Mass tables

The data files released by the papers linked below are used to create the mass tables output by this code. There was no AME data published in 1997, but the 1995 AME matches the 1997 NUBASE according to section 4, "The tables" on P31 of these proceedings. As a result the 1997 NUBASE data is referred to as being from 1995 for simplicity when merging data.

There are published papers for 1971 and 1977, but I can't find the associated data files. If you are reading this and have a copy, know of someone with a copy, or have any information, please let me know via this issue #13

All data from the single NUBASE data file, the AME mass file and two reaction files are parsed and saved into the table. Details from the different sources are merged on A, Z and published year for each isotope, but otherwise, no comparison or validation is done on common values.

Installation and Setup

The package is available on the Python Package Index so can be installed via pip

pip install nuclearmasses

Or you can clone the latest version from github and install locally. All work is done on a feature branch so cloning and using main should be the same as using the latest installed version from pip. There may be some additional functionality, but nothing should have been removed.

git clone https://github.com/php1ic/nuclearmasses
cd nuclearmasses
pip install -e .

Contributing

Details about contributing to the project are in CONTRIBUTING

Known issues

  • #7 Information from anything other than the ground state of an isotope is ignored when parsing the NUBASE file. The selection of what is and what is not included appears random to me which is why I simply ignored for the moment.

Metadata

Release files for nuclearmasses 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nuclearmasses 0.7.2
File Size Uploaded Provenance Actions
nuclearmasses-0.7.2.tar.gz 4.2 MB With provenance Details for nuclearmasses-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nuclearmasses 0.7.2
File Interpreter ABI Platform Actions
nuclearmasses-0.7.2-py3-none-any.whl Python 3 none any Details for nuclearmasses-0.7.2-py3-none-any.whl

Total release size: 4.2 MB

Release files / nuclearmasses-0.7.2.tar.gz

Download URL nuclearmasses-0.7.2.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a6ff72f16677e5664742451c769439691fe1932a07adda14150295ed3d232e19
BLAKE2b-256 checksum
How to use checksums
26b3e5bcf61b0f2a2f463d6fc6b3df0a9dd8aab9978c259c65f8f2000d6da13c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / nuclearmasses-0.7.2-py3-none-any.whl

Download URL nuclearmasses-0.7.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82593c2fdc9e0592f780d8b2bb6acab236fe2279ae93fe9898da615afbbd3ecc
BLAKE2b-256 checksum
How to use checksums
4f5eab513488215f3f054612f7ae6f3b9e7206e707c392172e5c2541407eef1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for nuclearmasses 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nuclearmasses-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page