openmc-data 0.2.6__py3-none-any.whl → 2.2.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openmc_data/__init__.py +1 -1
- openmc_data/_version.py +2 -2
- openmc_data/convert/convert_endf.py +10 -25
- openmc_data/convert/convert_fendl.py +19 -33
- openmc_data/convert/convert_jeff32.py +4 -4
- openmc_data/convert/convert_jeff33.py +4 -4
- openmc_data/convert/convert_tendl.py +6 -10
- openmc_data/depletion/generate_jeff_chain.py +11 -1
- openmc_data/generate/generate_endf.py +2 -6
- openmc_data/generate/generate_fendl.py +124 -0
- openmc_data/generate/generate_jendl.py +1 -1
- openmc_data/urls.py +392 -254
- openmc_data/utils.py +26 -4
- {openmc_data-0.2.6.dist-info → openmc_data-2.2.8.dist-info}/METADATA +4 -2
- {openmc_data-0.2.6.dist-info → openmc_data-2.2.8.dist-info}/RECORD +19 -18
- {openmc_data-0.2.6.dist-info → openmc_data-2.2.8.dist-info}/entry_points.txt +1 -0
- {openmc_data-0.2.6.dist-info → openmc_data-2.2.8.dist-info}/LICENSE +0 -0
- {openmc_data-0.2.6.dist-info → openmc_data-2.2.8.dist-info}/WHEEL +0 -0
- {openmc_data-0.2.6.dist-info → openmc_data-2.2.8.dist-info}/top_level.txt +0 -0
openmc_data/utils.py
CHANGED
|
@@ -8,22 +8,44 @@ import shutil
|
|
|
8
8
|
from urllib.parse import urlparse
|
|
9
9
|
from urllib.request import Request, urlopen
|
|
10
10
|
import warnings
|
|
11
|
+
from .urls import all_release_details
|
|
11
12
|
|
|
12
13
|
import openmc.data
|
|
13
14
|
|
|
14
15
|
_BLOCK_SIZE = 16384
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
def state_download_size(download_size, uncompressed_size, units):
|
|
17
|
+
def state_download_size(compressed_file_size, uncompressed_file_size, units):
|
|
18
18
|
"""Prints a standard message to users displaying the amount of storage
|
|
19
19
|
space required to run the script"""
|
|
20
20
|
|
|
21
|
-
msg = (f"WARNING: This script will download up to {
|
|
21
|
+
msg = (f"WARNING: This script will download up to {compressed_file_size} {units} "
|
|
22
22
|
"of data. Extracting and processing the data may require as much "
|
|
23
|
-
f"as {
|
|
23
|
+
f"as {uncompressed_file_size} {units} of additional free disk space.")
|
|
24
24
|
warnings.warn(msg)
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
def get_file_types(particles, script_type='convert'):
|
|
28
|
+
if script_type == 'convert':
|
|
29
|
+
|
|
30
|
+
ft = {}
|
|
31
|
+
for particle in particles:
|
|
32
|
+
ft[particle] = {'photon':'endf', 'neutron':'ace'}[particle]
|
|
33
|
+
return ft
|
|
34
|
+
|
|
35
|
+
def calculate_download_size(library_name, release, particles, file_type,units='GB'):
|
|
36
|
+
"""Prints a standard message to users displaying the amount of storage
|
|
37
|
+
space required to run the script"""
|
|
38
|
+
|
|
39
|
+
release_details = all_release_details[library_name][release]
|
|
40
|
+
|
|
41
|
+
compressed_file_size = 0
|
|
42
|
+
uncompressed_file_size = 0
|
|
43
|
+
for p in particles:
|
|
44
|
+
compressed_file_size += release_details[p][file_type[p]]["compressed_file_size"]
|
|
45
|
+
uncompressed_file_size += release_details[p][file_type[p]]["uncompressed_file_size"]
|
|
46
|
+
state_download_size(compressed_file_size, uncompressed_file_size, units)
|
|
47
|
+
|
|
48
|
+
|
|
27
49
|
def process_neutron(path, output_dir, libver, temperatures=None):
|
|
28
50
|
"""Process ENDF neutron sublibrary file into HDF5 and write into a
|
|
29
51
|
specified output directory."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openmc_data
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.2.8
|
|
4
4
|
Summary: A Python package containing a collection of scripts for producing and downloading data for OpenMC
|
|
5
5
|
Author-email: Jonathan Shimwell <mail@jshimwell.com>
|
|
6
6
|
License: Copyright (c) 2019-2022 UChicago Argonne LLC and contributors
|
|
@@ -104,7 +104,7 @@ A few categories of scripts are available:
|
|
|
104
104
|
|convert_mcnp71 | ENDF/B | VII.1 | LANL |
|
|
105
105
|
|convert_endf | ENDF/B | VII.1 | NNDC |
|
|
106
106
|
|convert_lib80x | ENDF/B | VIII.0 | LANL |
|
|
107
|
-
|convert_fendl | FENDL |
|
|
107
|
+
|convert_fendl | FENDL | 3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.1<br>3.0<br>2.1 |
|
|
108
108
|
|convert_jeff32 | JEFF | 3.2 |
|
|
109
109
|
|convert_jeff33 | JEFF | 3.3 |
|
|
110
110
|
|convert_tendl | TENDL | 2015<br>2017<br>2019<br>2021 |
|
|
@@ -115,8 +115,10 @@ A few categories of scripts are available:
|
|
|
115
115
|
|-|-|-|-|
|
|
116
116
|
| generate_cendl | CENDL | 3.1<br>3.2 | |
|
|
117
117
|
| generate_endf | ENDF/B | VII.1<br>VIII.0 | NNDC |
|
|
118
|
+
| generate_fendl | FENDL | 3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.0 | |
|
|
118
119
|
| generate_jendl | JENDL | 4.0<br>5.0 | |
|
|
119
120
|
|
|
121
|
+
|
|
120
122
|
### Download cross sections
|
|
121
123
|
|
|
122
124
|
| Script name | Library | Release | Processed by |
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
openmc_data/__init__.py,sha256=
|
|
2
|
-
openmc_data/_version.py,sha256=
|
|
3
|
-
openmc_data/urls.py,sha256=
|
|
1
|
+
openmc_data/__init__.py,sha256=fOMSqMJm50askApEA9aDzgevM1QC4S-wyAh5xuLdltY,786
|
|
2
|
+
openmc_data/_version.py,sha256=Hw01Osr5lhgDQWA_kkOkJtSTZX8YWN7rmsFgX1_SGUs,411
|
|
3
|
+
openmc_data/urls.py,sha256=L_hwVgNmYllsSNhafvWYm5eon5yRI6ooN90jDTkAJQ4,18860
|
|
4
4
|
openmc_data/urls_chain.py,sha256=4t_uFjcUD_iH58l9U3gBtcm2We1s2HvTt67xd3ZRJHE,2688
|
|
5
5
|
openmc_data/urls_h5.py,sha256=jg6FezS4p-ltNVMzTLw6QVcOdyCzOaiCap7PqbfYFMY,1292
|
|
6
6
|
openmc_data/urls_xml.py,sha256=g08eB9uvAwz_87f1bEBkUbEESjBNcU9U59NGg7zAHso,1421
|
|
7
|
-
openmc_data/utils.py,sha256=
|
|
7
|
+
openmc_data/utils.py,sha256=7Vx3fbEw6Oakoe1TmlZVEyDjSxYdU4z1tuY8l3EIdCc,7435
|
|
8
8
|
openmc_data/convert/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
openmc_data/convert/convert_endf.py,sha256=
|
|
10
|
-
openmc_data/convert/convert_fendl.py,sha256=
|
|
11
|
-
openmc_data/convert/convert_jeff32.py,sha256=
|
|
12
|
-
openmc_data/convert/convert_jeff33.py,sha256=
|
|
9
|
+
openmc_data/convert/convert_endf.py,sha256=6pP4wgaPTrCIK4qxOIp2CacFl-tMhQ0XvjDcWoCcI18,6610
|
|
10
|
+
openmc_data/convert/convert_fendl.py,sha256=VZzdJeq9xx5w8IfsZVRvUZ7JqrlaV-s_1LjBIRdyuuA,10507
|
|
11
|
+
openmc_data/convert/convert_jeff32.py,sha256=iFWkOQ_Nsnw-aF3qJT9WuBfjqNZuMEACLhg-hhTKU6Y,8644
|
|
12
|
+
openmc_data/convert/convert_jeff33.py,sha256=CbSCBlgAzk1iALOJIYTmHRNK-z2ZbGSj7d9SNF_aFoo,6448
|
|
13
13
|
openmc_data/convert/convert_lib80x.py,sha256=ZVeMj2AW6HeP3TRUo791-gyfv0MA7JhIJn0Q9TKuPW0,3425
|
|
14
14
|
openmc_data/convert/convert_mcnp70.py,sha256=Y1SKKjxFJIm9A-3VIID_DmjjyCCuPMCyPhkbrsEMVL8,4891
|
|
15
15
|
openmc_data/convert/convert_mcnp71.py,sha256=a2jygs1Y6wXyHcS6HYU9hAAkMhtPOiyUZ-WVp-957V8,4646
|
|
16
|
-
openmc_data/convert/convert_tendl.py,sha256=
|
|
16
|
+
openmc_data/convert/convert_tendl.py,sha256=60cicKeYMaxdFqjYp56DshezR6RvLourDwnU3KX4Rc8,5587
|
|
17
17
|
openmc_data/depletion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
openmc_data/depletion/add_branching_ratios.py,sha256=epk58C0-u7zNdbRJcTeXNs2tKxa1lykVp_L2utkTQWI,1596
|
|
19
19
|
openmc_data/depletion/branching_ratios_pwr.json,sha256=6sLpmQjhkg1-gsgeeH7grSm-nepaYEoZn8rMi857xyM,5498
|
|
@@ -32,7 +32,7 @@ openmc_data/depletion/chain_endfb71_pwr.xml,sha256=jAzAlbvI44zzv8xFZgHL1fTf-ZE12
|
|
|
32
32
|
openmc_data/depletion/chain_endfb71_sfr.xml,sha256=s0OJwslf-xfNiROgPgY96wg7ddvRvBjKBcISNGjN_yw,1863707
|
|
33
33
|
openmc_data/depletion/generate_endf71_chain_casl.py,sha256=OpQi48fMYpAS7i7M5GfetsSatmPJk4cZfHkQokb2dig,11234
|
|
34
34
|
openmc_data/depletion/generate_endf_chain.py,sha256=cIVuoCWYOap1_I7rKgEkNRSMTJzrazcUG5KlkZuZlNc,2964
|
|
35
|
-
openmc_data/depletion/generate_jeff_chain.py,sha256=
|
|
35
|
+
openmc_data/depletion/generate_jeff_chain.py,sha256=9OFiCjXp0WBTr3FO1Wj8zK3-ZBeEcO-3OoIQXf9MRq4,3088
|
|
36
36
|
openmc_data/depletion/generate_serpent_fissq.py,sha256=IizN7MwhEB3_V-9oOIOa5c5RYUqYfEeR3TexSKeIuSc,1426
|
|
37
37
|
openmc_data/depletion/generate_tendl_chain.py,sha256=owQJLiPPUfgFiSQtuQRsCBlALNOcu-0HT5-eambY7ig,5092
|
|
38
38
|
openmc_data/depletion/reduce_chain.py,sha256=PovyMtc_W_9QhZMU19qlc3w_VJNWgwu0sjWK8do6bHo,1311
|
|
@@ -45,18 +45,19 @@ openmc_data/download/download_endf_chain.py,sha256=O9uK7sC1yhnLzloGTkxIiGPmVt6tW
|
|
|
45
45
|
openmc_data/download/download_tendl.py,sha256=Ku1cHcmWXX93LT9s-Grcn-SoFHbqxw7T0zNDUD9Kjgs,2839
|
|
46
46
|
openmc_data/generate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
openmc_data/generate/generate_cendl.py,sha256=naeFyC99lLXutl6y9n4qebgMc-k2gMt9XC9kb_jL1HQ,6223
|
|
48
|
-
openmc_data/generate/generate_endf.py,sha256=
|
|
48
|
+
openmc_data/generate/generate_endf.py,sha256=PUMKt_3bhQSXCVKcY1v7Y3ECUHIOTNPX2QwOSHcHOfc,17971
|
|
49
|
+
openmc_data/generate/generate_fendl.py,sha256=FuhCKwX25kzFCI6J4aPD9VwuEPAF4DrnB4nRbA3tHLA,4676
|
|
49
50
|
openmc_data/generate/generate_jeff33.py,sha256=nnLHR85jtrmks0O1bZxhOYNbfNRfB94ZLxZ6-pl3gM4,8698
|
|
50
|
-
openmc_data/generate/generate_jendl.py,sha256=
|
|
51
|
+
openmc_data/generate/generate_jendl.py,sha256=3j6ntogp_m10T1Ssz-2aCjdxKRrSVBjrzO4NqI-Qvk8,4589
|
|
51
52
|
openmc_data/other/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
53
|
openmc_data/other/combine_libraries.py,sha256=HQvR9ppPL_kLoWC478tFLG_hFfug0EmkvW3bN03FYBk,4250
|
|
53
54
|
openmc_data/other/convert_tendl_rand.py,sha256=F3fq4vQ0kin_FjwAhZm8HP8GzQsk-1gYfWxgKDYN9S0,10619
|
|
54
55
|
openmc_data/other/make_compton.py,sha256=xsY4fLHWceiRA8tUBVavlZ1TbIDk5HKgikWytEqq6vE,2466
|
|
55
56
|
openmc_data/other/make_stopping_powers.py,sha256=4Qy9L6VAHm5sMLrDadWX-xS8TSeT-QTiNHDXmZIcT7I,1956
|
|
56
57
|
openmc_data/other/sample_sandy.py,sha256=uwmZk_XZ59VJOLYqp8cOCruW45qTKzlbeuBwXB6Fk1c,6184
|
|
57
|
-
openmc_data-
|
|
58
|
-
openmc_data-
|
|
59
|
-
openmc_data-
|
|
60
|
-
openmc_data-
|
|
61
|
-
openmc_data-
|
|
62
|
-
openmc_data-
|
|
58
|
+
openmc_data-2.2.8.dist-info/LICENSE,sha256=T8b4ZA1twIAqilf_sxR250dAe8AdFhM3k6hqEE0TzBs,1086
|
|
59
|
+
openmc_data-2.2.8.dist-info/METADATA,sha256=qwt12AdRPQ3CTQZ3Z5aQaNM1mIGffyZs38A5X57PGKU,9315
|
|
60
|
+
openmc_data-2.2.8.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
61
|
+
openmc_data-2.2.8.dist-info/entry_points.txt,sha256=XHn4QdJU5BA7P4NZ-6SYZuXMq5vKXpRhjGZF1reO2hY,1724
|
|
62
|
+
openmc_data-2.2.8.dist-info/top_level.txt,sha256=ORU-aSVgJUNjwtVsqnZjP4tvU3QUZZpa-XF90ZnE4MQ,12
|
|
63
|
+
openmc_data-2.2.8.dist-info/RECORD,,
|
|
@@ -17,6 +17,7 @@ generate_cendl = openmc_data.generate.generate_cendl:main
|
|
|
17
17
|
generate_endf = openmc_data.generate.generate_endf:main
|
|
18
18
|
generate_endf71_chain_casl = openmc_data.depletion.generate_endf71_chain_casl:main
|
|
19
19
|
generate_endf_chain = openmc_data.depletion.generate_endf_chain:main
|
|
20
|
+
generate_fendl = openmc_data.generate.generate_fendl:main
|
|
20
21
|
generate_jeff33 = openmc_data.generate.generate_jeff33:main
|
|
21
22
|
generate_jeff_chain = openmc_data.depletion.generate_jeff_chain:main
|
|
22
23
|
generate_jendl = openmc_data.generate.generate_jendl:main
|
|
File without changes
|
|
File without changes
|
|
File without changes
|