Welcome to endf-parserpy’s documentation!

endf-parserpy is a Python package for reading and writing ENDF files. This functionality in combination with Python’s powerful facilities for data handling enables you to perform various actions on ENDF 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. Note that the package does not support several materials in a single ENDF-6 file.

Install endf-parserpy

pip install endf-parserpy --upgrade

Note

The package contains C++ source files for accelerated parsing. If a suitable binary wheel isn’t available for your platform, an attempt will be made to compile the source files during installation, which may take up to ten minutes. If you don’t need this acceleration, you can disable the compilation attempt by setting the environment variable INSTALL_ENDF_PARSERPY_CPP to no before executing the pip install command. Under Linux and MacOS, the command would be

export INSTALL_ENDF_PARSERPY_CPP=no

and under Windows

set INSTALL_ENDF_PARSERPY_CPP=no

Note

The package is still evolving and will be extended with convenience functions to enhance the user experience. You can always check for updated versions on PyPI.

Resources