Skip to content

Commit 680880e

Browse files
authored
Merge pull request #39 from openmc-data-storage/develop
refactored code
2 parents 8992e05 + e1c47eb commit 680880e

14 files changed

+3200
-3028
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ dmypy.json
129129
.pyre/
130130

131131
# OpenMC files
132-
*.xml
132+
materials.xml
133+
tallies.xml
134+
geometry.xml
135+
settings.xml
133136
*.h5
134137

135138
**_version.py

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ package-dir = {"" = "src"}
4545

4646
[project.scripts]
4747
openmc_data_downloader = "openmc_data_downloader.terminal_cmd:main"
48+
49+
[tool.setuptools.package-data]
50+
openmc_data_downloader = ["*.xml"]

src/openmc_data_downloader/__init__.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,21 @@
1717
NATURAL_ABUNDANCE,
1818
LIB_OPTIONS,
1919
PARTICLE_OPTIONS,
20-
SAB_OPTIONS,
2120
STABLE_ISOTOPE_OPTIONS,
2221
ALL_ISOTOPE_OPTIONS,
23-
xs_info,
24-
sab_info,
22+
ALL_ELEMENT_OPTIONS,
23+
STABLE_ELEMENT_OPTIONS,
24+
SAB_OPTIONS,
25+
neutron_xs_info,
26+
photon_xs_info,
27+
sab_xs_info,
2528
)
2629

2730
from .utils import (
2831
create_cross_sections_xml,
29-
just_in_time_library_generator,
30-
download_data_frame_of_isotopes,
3132
download_single_file,
32-
expand_elements_to_isotopes,
33-
expand_materials_xml_to_isotopes,
34-
expand_materials_xml_to_sab,
3533
identify_isotopes_to_download,
34+
identify_sabs_to_download,
3635
expand_materials_to_isotopes,
3736
expand_materials_to_sabs,
38-
identify_sab_to_download,
3937
)

0 commit comments

Comments
 (0)