Skip to main content

Nuclear Masses

PyPI Python Version

Unit Tests codecov Read the Docs

DOI

Introduction

nuclearmasses is a Python library for working with evaluated nuclear physics data. It provides convenient access to Atomic Mass Evaluation (AME) and NUBASE datasets, parsing their published formats and combining nuclear masses, mass excesses, radioactive decay properties and isotope information into a pandas DateFrame.

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

No known issues, please raise an issue or create a PR if you find one.

Metadata

Release files for nuclearmasses 0.8.0

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.8.0
File Size Uploaded Provenance Actions
nuclearmasses-0.8.0.tar.gz 4.2 MB With provenance Details for nuclearmasses-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 4.2 MB

Release files / nuclearmasses-0.8.0.tar.gz

Download URL nuclearmasses-0.8.0.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
0790f438707ff1c7349a1149b3d2e0767ecb60f0723154b1bae1f4956ce80366
BLAKE2b-256 checksum
How to use checksums
04642143a645d8a35a78849cadc0553545c792696f49fa9b057bb0e3f001c67e
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 22, 2026.

Transparency log

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

Download URL nuclearmasses-0.8.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fbd3b02b13c76f443cfc22918851480fccc273420307351c7061154d653d30a
BLAKE2b-256 checksum
How to use checksums
cd28d6dd7b46d2cc76b9a50543e13318731798f27c34978947be119ad4e12741
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 22, 2026.

Transparency log

Security for nuclearmasses 0.8.0

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.8.0.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 22, 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