From d92c5465f2273312dc8ba830b382630fd208d3eb Mon Sep 17 00:00:00 2001 From: Perry <100789850+yrrepy@users.noreply.github.com> Date: Tue, 8 Sep 2026 15:58:01 -0700 Subject: [PATCH 1/2] update_zsymam for UinUO2-P thermal scattering data Add update_zsymam function calls for thermal scattering files: tsl-UinUO2-5P.endf tsl-UinUO2-10P.endf tsl-UinUO2-100P.endf otherwise a naming collision occurs and these are not produced (only tsl-UinUO2.endf is) --- generate_endf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generate_endf.py b/generate_endf.py index dbc6133..29494c2 100755 --- a/generate_endf.py +++ b/generate_endf.py @@ -16,7 +16,7 @@ from shutil import rmtree, copy, copyfileobj import openmc.data -from utils import download, process_neutron, process_thermal +from utils import download, process_neutron, process_thermal, update_zsymam class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter, @@ -459,6 +459,10 @@ def sort_key(path): if 'thermal' in args.particles: particle = 'thermal' + if args.release == 'viii.1': + update_zsymam(thermal_dir / 'tsl-UinUO2-5P.endf', 'UUO2-5P') + update_zsymam(thermal_dir / 'tsl-UinUO2-10P.endf', 'UUO2-10P') + update_zsymam(thermal_dir / 'tsl-UinUO2-100P.endf', 'UUO2-100P') with Pool() as pool: details = release_details[args.release][particle] results = [] From 476811c55923c130b1ed7647ded4829edb4b44cc Mon Sep 17 00:00:00 2001 From: Perry <100789850+yrrepy@users.noreply.github.com> Date: Tue, 8 Sep 2026 16:19:10 -0700 Subject: [PATCH 2/2] Comment --- generate_endf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generate_endf.py b/generate_endf.py index 29494c2..0941d6b 100755 --- a/generate_endf.py +++ b/generate_endf.py @@ -460,6 +460,7 @@ def sort_key(path): if 'thermal' in args.particles: particle = 'thermal' if args.release == 'viii.1': + # Patch non-unique ZSYMAM fields update_zsymam(thermal_dir / 'tsl-UinUO2-5P.endf', 'UUO2-5P') update_zsymam(thermal_dir / 'tsl-UinUO2-10P.endf', 'UUO2-10P') update_zsymam(thermal_dir / 'tsl-UinUO2-100P.endf', 'UUO2-100P')