
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
A Python package for reading, writing, verifying and translating ENDF-6 files
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:
Many of these actions can be performed via the command line. The support for the ENDF-6 format is comprehensive and some special NJOY2016 output formats are also supported. 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.
This package is available on the
Python Package Index
and can be installed using pip
:
python -m pip install endf-parserpy --upgrade
The documentation is available online
@readthedocs.
Consider the README.md
in the docs/
subdirectory
for instructions on how to generate the help files locally.
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 EndfParserFactory
parser = EndfParserFactory.create()
endf_dict = parser.parsefile('input.endf')
endf_dict[3][1]['AWR'] = 99.99
parser.writefile('output.endf', endf_dict)
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
This code is distributed under the MIT license augmented by an IAEA clause, see the accompanying license file for more information.
Copyright (c) International Atomic Energy Agency (IAEA)
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.
FAQs
A Python package for reading, writing, verifying and translating ENDF-6 files
We found that endf-parserpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.