{"id":44835634,"url":"https://github.com/openmc-data-storage/openmc_data_downloader","last_synced_at":"2026-02-17T01:13:46.376Z","repository":{"id":46054911,"uuid":"346815142","full_name":"openmc-data-storage/openmc_data_downloader","owner":"openmc-data-storage","description":"A Python package for downloading h5 cross section files for use in OpenMC.","archived":false,"fork":false,"pushed_at":"2025-01-09T21:21:24.000Z","size":244,"stargazers_count":15,"open_issues_count":6,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-12T02:28:50.855Z","etag":null,"topics":["cross","data","h5","openmc","section","xml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openmc-data-storage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-11T19:31:22.000Z","updated_at":"2025-12-25T04:21:49.000Z","dependencies_parsed_at":"2025-04-13T10:17:26.901Z","dependency_job_id":"02b17f02-a6af-4724-940d-bce71e97e73a","html_url":"https://github.com/openmc-data-storage/openmc_data_downloader","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/openmc-data-storage/openmc_data_downloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmc-data-storage%2Fopenmc_data_downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmc-data-storage%2Fopenmc_data_downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmc-data-storage%2Fopenmc_data_downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmc-data-storage%2Fopenmc_data_downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openmc-data-storage","download_url":"https://codeload.github.com/openmc-data-storage/openmc_data_downloader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmc-data-storage%2Fopenmc_data_downloader/sbom","scorecard":{"id":709735,"data":{"date":"2025-08-11","repo":{"name":"github.com/openmc-data-storage/openmc_data_downloader","commit":"d8002777709ea5826811bb3128fa27364e2af63a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/anaconda-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/anaconda-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/black.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/black.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/black.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/black.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/black.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/black.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/conda-build-test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/conda-build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker_ci_main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/docker_ci_main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/openmc-data-storage/openmc_data_downloader/python-publish.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/black.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/black.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/docker_ci_main.yml:24","Warn: downloadThenRun not pinned by hash: .github/workflows/docker_ci_main.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:31","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/anaconda-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/black.yml:1","Warn: no topLevel permission defined: .github/workflows/conda-build-test.yml:1","Warn: no topLevel permission defined: .github/workflows/docker_ci_main.yml:1","Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-73"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T07:46:39.916Z","repository_id":46054911,"created_at":"2025-08-22T07:46:39.916Z","updated_at":"2025-08-22T07:46:39.916Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29528528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"ssl_error","status_checked_at":"2026-02-17T00:54:25.811Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cross","data","h5","openmc","section","xml"],"created_at":"2026-02-17T01:13:45.766Z","updated_at":"2026-02-17T01:13:46.368Z","avatar_url":"https://github.com/openmc-data-storage.png","language":"Python","readme":"\n[![CI - Main](https://github.com/openmc-data-storage/openmc_data_downloader/actions/workflows/docker_ci_main.yml/badge.svg)](https://github.com/openmc-data-storage/openmc_data_downloader/actions/workflows/docker_ci_main.yml)\n[![Upload Python Package](https://github.com/openmc-data-storage/openmc_data_downloader/actions/workflows/python-publish.yml/badge.svg)](https://github.com/openmc-data-storage/openmc_data_downloader/actions/workflows/python-publish.yml)\n[![PyPI](https://img.shields.io/pypi/v/openmc_data_downloader?color=brightgreen\u0026label=pypi\u0026logo=grebrightgreenen\u0026logoColor=green)](https://pypi.org/project/openmc_data_downloader/)\n[![codecov](https://codecov.io/gh/openmc-data-storage/openmc_data_downloader/branch/main/graph/badge.svg)](https://codecov.io/gh/openmc-data-storage/openmc_data_downloader)\n\n# OpenMC data downloader\n\nA Python package for downloading preprocessed cross section data in the h5 file\nformat for use with OpenMC.\n\nThis package allows you to download a fully reproducible composite nuclear data\nlibrary with one command.\n\nThere are several methods of obtaining complete data libraries for use with\nOpenMC, for example:\n\n- [OpenMC.org](https://openmc.org/) has entire libraries downloadable as compressed files\n- [OpenMC data repository scripts](https://github.com/openmc-dev/data/) has scripts for automatically downloading ACE and ENDF files and generating h5 files from these inputs.\n\n## History\n\nThe package was originally conceived by Jonathan Shimwell as a means of\ndownloading a minimal selection of data for use on continuous integration\nplatforms.\nThe package can also used to produce traceable and reproducible\nnuclear data distributions.\n\n## System Installation\n\nTo install the openmc_data_downloader you need to have Python3 installed,\nOpenMC is also advisable if you want to run simulations using the h5 data files\nbut not actually mandatory if you just want to download the cross sections.\n\n```bash\npip install openmc_data_downloader\n```\n\n## Features\n\nThe OpenMC data downloader is able to download cross section files for isotopes\nfrom nuclear data libraries.The user specifies the nuclear data libraries in\norder of their preference. When an isotope is found in multiple libraries it\nwill be downloaded from the highest preference library. This avoid duplication\nof isotopes and provides a reproducible nuclear data environment.\n\nThe nuclear data h5 file are downloaded from the OpenMC-data-storage\nrepository. Prior to being added to the repository they have been automatically\nprocessed using scripts from OpenMC data repository, these scripts convert ACE\nand ENDF file to h5 files.\n\nThe resulting h5 files are then used in and automated test suite of simulations\nto help ensure they are suitable for their intended purpose.\n\nIsotopes for downloading can be found in a variety of ways as demonstrated below.\nWhen downloading a cross_section.xml file is automatically created and h5 files\nare named with their nuclear data library and the isotope. This helps avoid\ndownloading files that already exist locally and the ```overwrite``` argument\ncan be used to control if these files are downloaded again.\n\n## Usage - command line usage\n\n### Getting a description of the input options\n\n```bash\nopenmc_data_downloader --help\n```\n\n### Downloading a single isotope from the FENDL 3.1d nuclear library\n\n```bash\nopenmc_data_downloader -l FENDL-3.1d -i Li6\n```\n\n### Downloading a multiple isotopes from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -i Li6 Li7\n```\n\n### Downloading a single element from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -e Li\n```\n\n### Downloading a multiple element from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -e Li Si Na\n```\n\n### Downloading h5 files from the ENDF/B 7.1 NNDC library to a specific folder (destination)\n\n```bash\nopenmc_data_downloader -l ENDFB-7.1-NNDC -i Be9 -d my_h5_files\n```\n\n### Downloading a combination of isotopes and element from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -e Li Si Na -i Fe56 U235\n```\n### Downloading all the isotopes from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -i all\n```\n### Downloading all the stable isotopes from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -i stable\n```\n\n### Downloading all the isotopes in a materials.xml file from the TENDL 2019 nuclear library\n\n```bash\nopenmc_data_downloader -l TENDL-2019 -m materials.xml\n```\n\n### Downloading 3 isotopes from ENDF/B 7.1 NNDC (first choice) and TENDL 2019 (second choice) nuclear library\n\n```bash\nopenmc_data_downloader -l ENDFB-7.1-NNDC TENDL-2019 -i Li6 Li7 Be9\n```\n\n### Downloading the photon only cross section for an element ENDF/B 7.1 NNDC\n\n```bash\nopenmc_data_downloader -l ENDFB-7.1-NNDC -e Li -p photon \n```\n\n### Downloading the neutron and photon cross section for an element ENDF/B 7.1 NNDC\n\n```bash\nopenmc_data_downloader -l ENDFB-7.1-NNDC -e Li -p neutron photon\n```\n\n### Downloading the neutron cross section for elements and an SaB cross sections\n\n```bash\nopenmc_data_downloader -l ENDFB-7.1-NNDC -e Be O -s c_Be_in_BeO\n```\n\n## Usage - within a Python environment\n\nWhen using the Python API the ```just_in_time_library_generator()``` function\nprovides similar capabilities to the ```openmc_data_downloader``` terminal\ncommand. With one key difference being that ```just_in_time_library_generator()```\nsets the ```OPENMC_CROSS_SECTIONS``` environmental variable to point to the\nnewly created cross_sections.xml by default.\n\n### Downloading the isotopes present in an OpenMC material\n\n```python\nimport openmc\nimport openmc_data_downloader as odd\n\nmat1 = openmc.Material()\nmat1.add_element('Fe', 0.95)\nmat1.add_element('C', 0.05)\n\nmats = openmc.Materials([mat1])\n\nodd.download_cross_section_data(\n        mats,\n        libraries=[\"FENDL-3.1d\"],\n        set_OPENMC_CROSS_SECTIONS=True,\n        particles=[\"neutron\"],\n    )\n```\n\n### Downloading the isotopes present in an OpenMC material from two libraries but with a preference for ENDF/B 7.1 NNDC library over TENDL 2019\n\n```python\nimport openmc\nimport openmc_data_downloader as odd\n\nmat1 = openmc.Material()\nmat1.add_element('Fe', 0.95)\nmat1.add_element('C', 0.05)\n\nmats = openmc.Materials([mat1])\n\nodd.download_cross_section_data(\n        mats,\n        libraries=['ENDFB-7.1-NNDC', 'TENDL-2019'],\n        set_OPENMC_CROSS_SECTIONS=True,\n        particles=[\"neutron\"],\n    )\n```\n\n\n### Downloading neutron cross sections for a material with an SaB\n\n```python\nimport openmc\nimport openmc_data_downloader as odd\n\nmy_mat = openmc.Material()\nmy_mat.add_element('Be', 0.5)\nmy_mat.add_element('O', 0.5)\nmy_mat.add_s_alpha_beta('Be_in_BeO')\n\nmats = openmc.Materials([my_mat])\n\nodd.download_cross_section_data(\n        mats,\n        libraries=['ENDFB-7.1-NNDC', 'TENDL-2019'],\n        set_OPENMC_CROSS_SECTIONS=True,\n        particles=[\"neutron\"],\n)\n```\n\n### Downloading photon and neutron cross sections for isotopes and elements from the TENDL 2019 library\n\n```python\nimport openmc\nimport openmc_data_downloader as odd\n\nmat1 = openmc.Material()\nmat1.add_element('Fe', 0.95)\nmat1.add_element('C', 0.05)\n\nmats = openmc.Materials([mat1])\n\nodd.download_cross_section_data(\n        mats,\n        libraries=['ENDFB-7.1-NNDC', 'TENDL-2019'],\n        set_OPENMC_CROSS_SECTIONS=True,\n        particles=[\"neutron\", \"photon\"],\n    )\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmc-data-storage%2Fopenmc_data_downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmc-data-storage%2Fopenmc_data_downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmc-data-storage%2Fopenmc_data_downloader/lists"}