Skip to content

Commit 7d6eeaf

Browse files
author
Nicolas Linden
committed
include errata in jendl5
1 parent 92ef23a commit 7d6eeaf

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/openmc_data/generate/generate_jendl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,15 @@ def main():
8585
# EXTRACT FILES FROM TGZ
8686
if args.extract:
8787
extract(
88-
compressed_files=[download_path/ f for f in details['compressed_files']],
88+
compressed_files=[download_path / f for f in details['compressed_files']],
8989
extraction_dir=endf_files_dir,
9090
del_compressed_file=args.cleanup
9191
)
92+
for erratum in details["errata"]:
93+
files = Path('.').rglob(erratum)
94+
for p in files:
95+
p.rename((endf_files_dir / details["endf_files"]).parent / p.name)
96+
9297

9398
# ==============================================================================
9499
# GENERATE HDF5 LIBRARY -- NEUTRON FILES

src/openmc_data/urls.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,12 @@
459459
'neutron': {
460460
'endf':{
461461
'base_url': 'https://wwwndc.jaea.go.jp/ftpnd/ftp/JENDL/',
462-
'compressed_files': ['jendl5-n.tar.gz'],
462+
'compressed_files': ['jendl5-n.tar.gz', 'jendl5-n_upd1.tar.gz',
463+
'jendl5-n_upd6.tar.gz', 'jendl5-n_upd7.tar.gz',
464+
'jendl5-n_upd10.tar.gz', 'jendl5-n_upd11.tar.gz',
465+
'jendl5-n_upd12.tar.gz'],
463466
'endf_files': 'jendl5-n/*.dat',
467+
'errata': ['jendl5-n_upd1/*.dat', 'jendl-n_upd6/*.dat', '*.dat'],
464468
'metastables': 'jendl5-n/*m1.dat',
465469
'compressed_file_size': 4.1,
466470
'uncompressed_file_size': 16

0 commit comments

Comments
 (0)