From dccfb2e335c786da80a69bcf6b752a25afd647aa Mon Sep 17 00:00:00 2001 From: shimwell Date: Mon, 6 Jul 2026 18:09:27 +0200 Subject: [PATCH 1/2] Add TENDL-2023 and TENDL-2025 releases to chain generation URL registry Adds release entries for TENDL-2023 and TENDL-2025 to urls_chain.py and the corresponding release choices to generate_tendl_chain, bringing the chain registry to parity with urls.py. The 2023 tarball is named TENDL-n.2024new.tgz; the 2025 tarball is TENDL-n.tgz. Both URLs were verified live on the Imperial mirror. --- README.md | 2 +- src/openmc_data/depletion/generate_tendl_chain.py | 6 +++--- src/openmc_data/urls_chain.py | 12 ++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8529033..0b2f9ea 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ A few categories of scripts are available: |generate_endf_chain | ENDF/B | VII.1
VIII.0
VIII.1 | |generate_jeff_chain | JEFF | 3.3 | |generate_jendl_chain | JENDL | 5.0 | -|generate_tendl_chain | TENDL | 2019
2021 | +|generate_tendl_chain | TENDL | 2019
2021
2023
2025 | |generate_serpent_fissq | | | |generate_endf71_chain_casl | ENDF/B | | diff --git a/src/openmc_data/depletion/generate_tendl_chain.py b/src/openmc_data/depletion/generate_tendl_chain.py index da371a7..e9fbcc4 100755 --- a/src/openmc_data/depletion/generate_tendl_chain.py +++ b/src/openmc_data/depletion/generate_tendl_chain.py @@ -30,11 +30,11 @@ parser.add_argument( "-r", "--release", - choices=["2015", "2017", "2019", "2021"], + choices=["2015", "2017", "2019", "2021", "2023", "2025"], default="2021", help="The nuclear data library release " - "version. The currently supported options are 2019, " - "and 2021.", + "version. The currently supported options are 2015, 2017, 2019, " + "2021, 2023, and 2025.", ) parser.add_argument( "-d", diff --git a/src/openmc_data/urls_chain.py b/src/openmc_data/urls_chain.py index 1871cf7..5542092 100644 --- a/src/openmc_data/urls_chain.py +++ b/src/openmc_data/urls_chain.py @@ -83,6 +83,18 @@ 'base_url': 'https://tendl.imperial.ac.uk/tendl_2021/tar_files/', 'compressed_files': ['TENDL-n.tgz'], } + }, + '2023': { + 'neutron':{ + 'base_url': 'https://tendl.imperial.ac.uk/tendl_2023/tar_files/', + 'compressed_files': ['TENDL-n.2024new.tgz'], + } + }, + '2025': { + 'neutron':{ + 'base_url': 'https://tendl.imperial.ac.uk/tendl_2025/tar_files/', + 'compressed_files': ['TENDL-n.tgz'], + } } }, 'jendl': { From 30f79d090fa5210eaa65e01e79d67b3f65c867bd Mon Sep 17 00:00:00 2001 From: shimwell Date: Mon, 6 Jul 2026 18:13:02 +0200 Subject: [PATCH 2/2] CI: run apt-get update before installing dependencies The install steps called 'apt-get install libhdf5-serial-dev' against a stale package index, causing intermittent 404s when a cached dependency version (e.g. libcurl4-openssl-dev) was superseded and removed from the mirror pool. Running 'apt-get update' first refreshes the index. --- .github/workflows/test_package.yml | 1 + .github/workflows/test_processing.yml | 1 + .github/workflows/test_urls.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/test_package.yml b/.github/workflows/test_package.yml index a30c4bb..ce97485 100644 --- a/.github/workflows/test_package.yml +++ b/.github/workflows/test_package.yml @@ -29,6 +29,7 @@ jobs: - name: Install testing dependencies run: | + sudo apt-get update sudo apt-get install libhdf5-serial-dev git clone --single-branch --branch develop --depth 1 https://github.com/openmc-dev/openmc.git cd openmc diff --git a/.github/workflows/test_processing.yml b/.github/workflows/test_processing.yml index 44dc897..71d3605 100644 --- a/.github/workflows/test_processing.yml +++ b/.github/workflows/test_processing.yml @@ -45,6 +45,7 @@ jobs: - name: Install testing dependencies if: steps.changed-files-specific.outputs.any_changed == 'true' run: | + sudo apt-get update sudo apt-get install libhdf5-serial-dev git clone --single-branch --branch develop --depth 1 https://github.com/openmc-dev/openmc.git cd openmc diff --git a/.github/workflows/test_urls.yml b/.github/workflows/test_urls.yml index 50c2b45..2c5616a 100644 --- a/.github/workflows/test_urls.yml +++ b/.github/workflows/test_urls.yml @@ -31,6 +31,7 @@ jobs: - name: Install testing dependencies run: | + sudo apt-get update sudo apt-get install libhdf5-serial-dev git clone --single-branch --branch develop --depth 1 https://github.com/openmc-dev/openmc.git cd openmc