From 6aba2b295208f296668816af6d0e0e60560453a3 Mon Sep 17 00:00:00 2001 From: shimwell <8583900+shimwell@users.noreply.github.com> Date: Tue, 20 Oct 2026 10:58:53 +0200 Subject: [PATCH 1/3] Add official JEFF 3.3 and 4.0 HDF5 downloads --- .github/workflows/test_package.yml | 1 + README.md | 21 ++ pyproject.toml | 1 + src/openmc_data/download/download_jeff.py | 89 ++++++++ src/openmc_data/urls_h5.py | 17 ++ tests/test_download_jeff.py | 250 ++++++++++++++++++++++ 6 files changed, 379 insertions(+) create mode 100644 src/openmc_data/download/download_jeff.py create mode 100644 tests/test_download_jeff.py diff --git a/.github/workflows/test_package.yml b/.github/workflows/test_package.yml index 9fbbfa5..4518be0 100644 --- a/.github/workflows/test_package.yml +++ b/.github/workflows/test_package.yml @@ -69,6 +69,7 @@ jobs: - name: Test download h5 scripts exist run: | download_endf --help + download_jeff --help download_tendl --help - name: Test download chain files scripts exist diff --git a/README.md b/README.md index 609d98d..637381a 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,29 @@ A few categories of scripts are available: | Script name | Library | Release | Processed by | |-|-|-|-| | download_endf | ENDF/B | VII.1
VIII.0
VIII.1 | NNDC | +| download_jeff | JEFF | 3.3
4.0 | OpenMC development team | | download_tendl | TENDL | 2019
2021 | | +`download_jeff` downloads the preprocessed HDF5 archives from the +[official OpenMC data libraries](https://openmc.org/data/#official-data-libraries), +not the older NEA-converted JEFF 3.3 archive. Both releases include JEFF incident +neutron and thermal scattering data, a cross section XML index, and ENDF/B +photoatomic and atomic relaxation data: VIII.0 for JEFF 3.3 and VIII.1 for JEFF +4.0. Neutron temperatures are 250, 293.6, 600, 900, 1200, and 2500 K; thermal +scattering temperatures follow the source evaluations. No local NJOY processing +is needed. + +Run `download_jeff` for the default release 4.0, or `download_jeff -r 3.3` for +3.3 (`--release` is also accepted). Downloads are stored in a +jeff-<release>-download subdirectory and extracted into a +jeff-<release>-hdf5 subdirectory, preserving the archive's internal layout. +These directories are created under the current directory, or under the parent +directory selected with `--destination`/`-d`, for example +`download_jeff -r 4.0 -d /data --cleanup`. Downloading and extraction are enabled +by default; `--no-download` reuses local archives and `--no-extract` keeps them +compressed. `--cleanup` deletes the archives only after successful extraction; +the default `--no-cleanup` keeps them. Use `download_jeff --help` for all options. +