diff --git a/.github/workflows/test_package.yml b/.github/workflows/test_package.yml index d2f2676..ce3138b 100644 --- a/.github/workflows/test_package.yml +++ b/.github/workflows/test_package.yml @@ -52,9 +52,6 @@ jobs: run: | convert_fendl --help convert_jeff --help - convert_lib80x --help - convert_mcnp70 --help - convert_mcnp71 --help convert_endf --help convert_tendl --help diff --git a/.github/workflows/test_processing.yml b/.github/workflows/test_processing.yml index 35f814c..cac6e5a 100644 --- a/.github/workflows/test_processing.yml +++ b/.github/workflows/test_processing.yml @@ -48,10 +48,6 @@ jobs: cd .. pip install . - # Convert scripts that require MCNP nuclear data are not tested because - # the CI doesn't contain that nuclear data. - # convert_lib80x.py convert_mcnp70.py convert_mcnp71.py files are not tested here - - name: test default convert_fendl if: inputs.script == 'convert_fendl' run: | diff --git a/README.md b/README.md index a71f8b8..f8b889f 100644 --- a/README.md +++ b/README.md @@ -20,34 +20,6 @@ The package is distributed on [PYPI](https://pypi.org/project/openmc-data/) and pip install openmc_data ``` -# Testing - -Install the test dependencies with `python -m pip install '.[tests]'`, then run -the offline suite with `python -m pytest -q -rs tests -m 'not network and not integration'`. -Tests stay in the flat [tests](tests) directory: [test_utils.py](tests/test_utils.py) -covers shared utilities, [test_urls.py](tests/test_urls.py) covers registry -validation, HTTP helper regressions and marked live URL checks, and script-specific -tests belong in files named test_<script>.py alongside them. Use pytest's -`tmp_path` for generated test artifacts rather than writing into the repository. - -The `network` marker identifies live external URL checks; `integration` identifies -data download and processing tests. Pull requests and pushes run offline tests -and CLI help checks in [test_package.yml](.github/workflows/test_package.yml), and -offline URL syntax and repository-file checks in -[test_urls.yml](.github/workflows/test_urls.yml), without compiling OpenMC for the -URL jobs. Live URL checks run nightly or manually in a separate job of that same -workflow. Full, multi-GB processing runs only through the required script choice -in the manual [test_processing.yml](.github/workflows/test_processing.yml) workflow. - -Exactly one URL is explicitly **not tested over HTTP** because of its Cloudflare -challenge: -. -Its syntax is still checked offline. Other HTTP errors, including IAEA and -Cloudflare 403 responses, remain failures, not skips or expected failures. -Nightly/manual external health checks may remain red until blocked IAEA and -obsolete OECD URLs are restored; passing offline checks does not establish that -downloads are available. - # Usage Once installed several scripts are available in your terminal that are able to @@ -93,53 +65,27 @@ loads. `openmc.data.DataLibrary` drops comments when it rewrites a file. ### Convert cross sections -| Script name | Library | Release | -|-|-|-| -|convert_mcnp70 | ENDF/B | VII.0 | -|convert_mcnp71 | ENDF/B | VII.1 | -|convert_endf | ENDF/B | VII.1 | -|convert_lib80x | ENDF/B | VIII.0 | -|convert_fendl | FENDL | 3.2c
3.2b
3.2a
3.2
3.1d
3.1a
3.1
3.0
2.1 | -|convert_jeff | JEFF | 3.2
3.3
4.0 (default) | -|convert_tendl | TENDL | 2015
2017
2019
2021 | - -#### JEFF ACE conversion - -`convert_jeff -r 3.3 -t 600 900 --destination jeff-hot` converts neutron and -thermal ACE data without NJOY or a 293 K base. Defaults: release 4.0, all neutron -temperatures, `--libver latest`. Available neutron archive temperatures: - -| Release | Neutron archive temperatures (K) | -| --- | --- | -| 3.2 | 293, 300, 400, 500, 600, 700, 800, 900, 1000, 1200, 1500, 1800 | -| 3.3 | 293, 600, 900, 1200, 1500, 1800 | -| 4.0 | 0.1, 293, 300, 600, 900, 1200, 1500, 1800 | - -Select the 4.0 archive containing 293.6 K data with `-t 293`. **All native thermal -temperatures** are retained, including the 1 K UO2 pairs. **JEFF-4.0 supplies only -the public 12-case/316-table thermal subset**, not the full TSL library. -Unknown thermal aliases retain their identity with a `c_` prefix and warning. - -Output HDF5/XML goes directly into `--destination` (default `jeff--hdf5`), -staged until conversion succeeds; existing files and name/temperature collisions fail. -Downloads require multiple GB. `--no-download --no-extract` reuses working-directory -caches `jeff--download` and `jeff--ace`; `--cleanup` removes both -only after success. Metastable corrections never edit cached ACE files. -Every discovered nuclide must have every selected neutron temperature; 3.3 also -requires its 20 thermal groups. Caches cannot reveal nuclides absent at all temperatures. - -See `convert_jeff --help` for all options. +In the convert and generate tables, each release lists the data it produces: +n = neutron, g = photon (gamma), s(a,b) = thermal scattering. Temperatures are +for neutron data; thermal scattering data keep the evaluation's own temperatures. + +| Script name | Library | Release | Neutron temperatures (K) | +|-|-|-|-| +|convert_endf | ENDF/B | VII.1 (n, g, s(a,b)) | 293.6 | +|convert_fendl | FENDL | 3.2c (n, g)
3.2b (n, g)
3.2a (n, g)
3.2 (n, g)
3.1d (n, g)
3.1a (n, g)
3.1 (n, g)
3.0 (n, g)
2.1 (n, g) | 3.2c, 3.2b, 3.2a, 3.2: 293.6
3.1d, 3.1a, 3.1, 3.0: not yet confirmed
2.1: 300 | +|convert_jeff | JEFF | 3.2 (n, s(a,b))
3.3 (n, s(a,b))
4.0 (n, s(a,b)) (default) | 3.2: 293, 300, 400, 500, 600, 700, 800, 900, 1000, 1200, 1500, 1800
3.3: 293, 600, 900, 1200, 1500, 1800
4.0: 0.1, 293, 300, 600, 900, 1200, 1500, 1800
(all by default; select with `-t`) | +|convert_tendl | TENDL | 2015 (n)
2017 (n)
2019 (n)
2021 (n) | 2015: 293.16
2017, 2019, 2021: 293.6 | ### Generate cross sections -| Script name | Library | Release | -|-|-|-| -| generate_cendl | CENDL | 3.1
3.2 | -| generate_endf | ENDF/B | VII.1
VIII.0
VIII.1 | -| generate_fendl | FENDL | 3.2c
3.2b
3.2a
3.2
3.1d
3.1a
3.0 | -| generate_jendl | JENDL | 4.0
5.0 (neutron, thermal scattering and photon) | -| generate_jeff | JEFF | 3.3\*
4.0 (neutron and thermal scattering) | -| generate_tendl | TENDL | 2023
2025 | +| Script name | Library | Release | Neutron temperatures (K) | +|-|-|-|-| +| generate_cendl | CENDL | 3.1 (n)
3.2 (n) | 293.6 | +| generate_endf | ENDF/B | VII.1 (n, g, s(a,b))
VIII.0 (n, g, s(a,b))
VIII.1 (n, g, s(a,b)) | 250, 293.6, 600, 900, 1200, 2500
(default; change with `--temperatures`) | +| generate_fendl | FENDL | 3.2c (n)
3.2b (n)
3.2a (n)
3.2 (n)
3.1d (n)
3.1a (n)
3.0 (n) | 293.6 | +| generate_jendl | JENDL | 4.0 (n)
5.0 (n, g, s(a,b)) | 250, 293.6, 600, 900, 1200, 2500
(default; change with `--temperatures`) | +| generate_jeff | JEFF | 3.3\* (n, s(a,b))
4.0 (n, s(a,b)) | 250, 293.6, 600, 900, 1200, 2500
(default; change with `--temperatures`) | +| generate_tendl | TENDL | 2023 (n)
2025 (n) | 293.6 | \* `generate_jeff -r 3.3` substitutes TENDL-2019 evaluations for C13 and O17, because the JEFF 3.3 evaluations of these nuclides have defective MF=6 data. The C13 and O17 @@ -158,11 +104,8 @@ substitutions.