Skip to main content

A Python package for reading, writing, verifying and translating ENDF-6 files

Project description

endf-parserpy - an ENDF-6 toolkit for Python

endf-parserpy is a Python package for reading and writing ENDF-6 files. This functionality in combination with Python's powerful facilities for data handling enables you to perform various actions on ENDF-6 files, such as:

  • Easily access any information
  • Modify, delete and insert data
  • Perform format validation
  • Convert from and to other file formats, such as JSON
  • Merge data from various ENDF-6 files into a single one
  • Compare ENDF-6 files with meaningful reporting on differences
  • Construct ENDF-6 files from scratch

The support for the ENDF-6 format is comprehensive. The package has been tested on the various sublibraries of the major nuclear data libraries, such as ENDF/B, JEFF, and JENDL.

Install endf-parserpy

This package is available on the Python Package Index and can be installed using pip:

pip install endf-parserpy

Documentation

The documentation is available online @readthedocs.

Simple example

The following code snippet demonstrates how to read an ENDF-6 file, change the AWR variable in the MF3/MT1 section and write the modified data to a new ENDF-6 file:

from endf_parserpy import EndfParser
parser = EndfParser()
endf_dict = parser.parsefile('input.endf')
endf_dict['3']['1']['AWR'] = 99.99
parser.writefile('output.endf', endf_dict)

Citation

If you want to cite this package, please use the following reference:

G. Schnabel, D. L. Aldama, R. Capote, "How to explain ENDF-6 to computers: A formal ENDF format description language", arXiv:2312.08249, DOI:10.48550/arXiv.2312.08249

License

This code is distributed under the MIT license, see the accompanying license file for more information.

Copyright (c) International Atomic Energy Agency (IAEA)

Acknowledgments

Daniel Lopez Aldama made significant contributions to the development of this package. He debugged the ENDF-6 recipe files and helped in numerous discussions to convey a good understanding of the technical details of the ENDF-6 format that enabled the creation of this package.

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

endf_parserpy-0.8.1.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

endf_parserpy-0.8.1-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

Details for the file endf_parserpy-0.8.1.tar.gz.

File metadata

  • Download URL: endf_parserpy-0.8.1.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure

File hashes

Hashes for endf_parserpy-0.8.1.tar.gz
Algorithm Hash digest
SHA256 ec29b015a9d334a353ab428f9e0a8961ff2201dba6c996c829e1fc986d7f402d
MD5 1bf0395b84a42b9cb47b64e02c330f62
BLAKE2b-256 f8dce108008d8228e107ce99cc341eb84958829dd666f574a259568718037439

See more details on using hashes here.

File details

Details for the file endf_parserpy-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: endf_parserpy-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 78.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure

File hashes

Hashes for endf_parserpy-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eedf260c79f3bf4dd3e364c32c12ba723d63c82cc9dec105e7008ef491189ae
MD5 2426b51c3cbff03567ec5c56251610b9
BLAKE2b-256 2a4e69b468bc0595e6fd4b0870a7ddd2adc95f311cb5dda61c8658059aecd2f5

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