Skip to main content

A "simple" python interface to the EXFOR library

Project description

PyPI Build Status Azure DevOps releases

x4i3 - The EXFOR Interface [for Python 3]

This package x4i3 is a fork of the original x4i developed by David A. Brown (LLNL, Livermore CA, 94550). This pure python software acts as an interface to Experimental Nuclear Reaction Data (EXFOR) that the International Atomic Energy Agency (IAEA) actively maintains.

The database resembles a collection of experimental and evaluated nuclear data files in the EXFOR format (*.x4), a structured markup language. The mark-up language is quite complex and the data has legacy issues, such as data sets entered by hand or issues with the strict alignment criteria of FORTRAN-era punch cards. The documentation by David A. Brown describes a few basics of the format. Please use this documentation, the references therein and the other files in the doc folder. Please also cite the papers about the database if you use these data in your research.

The main purpose of this fork is to ensure that such a valuable and complex tool does stays available. Also, the original link for this code is dead and Python 2 is deprecated. As a standalone pure Python package on pip, it may cure derived works from a potential GPL infection.

Latest release 1.2.0

Update to EXFOR database version dated 2021/03/08.

History

This fork emerged originally in 2016 when we tried to benchmark current photo-nuclear interaction codes against experimental data in a project related to Ultra-High Energy Cosmic Rays. One paper that came out has a quite useful plot (Figure 1). Actually, this figure is an interactive matplotlib application that used the original x4i as a backend. When a box is clicked x4i gathers experimental data from EXFOR, applies some filtering and visualizes the data against pre-computed model predictions.

Examples

Nothing very useful yet. To check out if the installation is successful, try:

    python examples/get-entry.py --data -s 10504002

It should print some fission cross section to stdout.

Contributions

..are welcome. Also feel free to say hi since I don't know if there is a community who may find this interface useful.

Currently there is no development goals beyond basic maintenance.

Requirements

  • ~1 GB of hard drive space

Installation

pip install x4i3

Note that on first import ~600MB will be downloaded and 22k files will be decompressed to the data directory.

Support tools

To reduce the weight of this package, the database management tools have been moved to a different project x4i3_tools since these are for advanced users anyways.

Documentation

There is currently no separate documentation for x4i3. Please use the original documentation. The installation instruction are not valid anymore. There is a detailed but auto-generated API-doc documentation. Untar and enjoy the index.html if you need this.

Authors

David A. Brown (LLNL) (x4i)

Anatoli Fedynitch (x4i3)

Copyright and license

This code is distributed under the GNU General Public License (GPLv2) (see LICENSE) without any warranty or guaranty. The full disclaimer and license information is located in the LICENSE. Very unfortunately, the original code is GPLv2 infecting in a nontransparent way all derived works such as this. Be warned!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x4i3-1.2.3.tar.gz (245.5 kB view details)

Uploaded Source

Built Distribution

x4i3-1.2.3-py2.py3-none-any.whl (270.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file x4i3-1.2.3.tar.gz.

File metadata

  • Download URL: x4i3-1.2.3.tar.gz
  • Upload date:
  • Size: 245.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.17

File hashes

Hashes for x4i3-1.2.3.tar.gz
Algorithm Hash digest
SHA256 df312bd2cc24a4ce23e5b400b4e3ca052873dc489f7eff08e18ab670091b5d49
MD5 d5518ee6396f0dc10f246cfc1df95316
BLAKE2b-256 81b73ef3c7ae33d49c1ac0a5df08715281d6bf17ff04b1f3d0d457d06321c392

See more details on using hashes here.

File details

Details for the file x4i3-1.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: x4i3-1.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 270.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.17

File hashes

Hashes for x4i3-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 742e52312a0cfecc95aa080a1e1820c6ac9bcf44dc3740c7264404ddbea51720
MD5 9a96d4b61080deeafff0ef8869ef56ec
BLAKE2b-256 c4ab4181747d5ba4e6d1d1d31460c724d21c9ae7ad2ce67aaf2cd9c91133dc37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page