Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ A few categories of scripts are available:
| generate_endf | ENDF/B | VII.1<br>VIII.0 | NNDC |
| generate_fendl | FENDL | 3.2c<br>3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.0 | |
| generate_jendl | JENDL | 4.0<br>5.0 | |
| generate_tendl | TENDL | 2023 | |
| generate_tendl | TENDL | 2023<br>2025 | |


### Download cross sections
Expand Down
6 changes: 3 additions & 3 deletions src/openmc_data/generate/generate_tendl.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
default='latest', help="Output HDF5 versioning. Use "
"'earliest' for backwards compatibility or 'latest' for "
"performance")
parser.add_argument('-r', '--release', choices=["2023"], default="2023",
parser.add_argument('-r', '--release', choices=["2023", "2025"], default="2025",
help="The nuclear data library release version. "
"The options currently supported are 2023")
"The options currently supported are 2023 and 2025")
parser.add_argument('--cleanup', action='store_true',
help="Remove download directories when data has "
"been processed")
Expand Down Expand Up @@ -95,7 +95,7 @@ def main():
# GENERATE HDF5 LIBRARY -- NEUTRON FILES

# Get a list of all ENDF files
neutron_files = endf_files_dir.glob('*.tendl')
neutron_files = endf_files_dir.glob(details['endf_files'])

# Create output directory if it doesn't exist
args.destination.mkdir(parents=True, exist_ok=True)
Expand Down
18 changes: 15 additions & 3 deletions src/openmc_data/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,25 @@
"endf": {
"base_url": "https://tendl.web.psi.ch/tendl_2023/tar_files/",
"compressed_files": ["TENDL-n.2024new.tgz"],
"neutron_files": "tendl24c/*",
"metastables": "tendl24c/*m",
"compressed_file_size": 3.1,
"endf_files": "n-*.tendl",
"metastables": "n-*m.tendl",
"compressed_file_size": 3.5,
"uncompressed_file_size": 20,
}
}
},
"2025": {
"neutron": {
"endf": {
"base_url": "https://tendl.web.psi.ch/tendl_2025/tar_files/",
"compressed_files": ["TENDL-n.tgz"],
"endf_files": "n-*.tendl",
"metastables": "n-*m.tendl",
"compressed_file_size": 3.1,
"uncompressed_file_size": 13.9,
}
}
},
},
"fendl": {
"3.2c": {
Expand Down
Loading