openmc-data 0.2.5__py3-none-any.whl → 0.2.7__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/add_branching_ratios.py +3 -2
- openmc_data/depletion/generate_endf71_chain_casl.py +4 -2
- openmc_data/depletion/generate_endf_chain.py +4 -2
- openmc_data/depletion/generate_jeff_chain.py +4 -2
- openmc_data/depletion/generate_serpent_fissq.py +4 -2
- openmc_data/depletion/generate_tendl_chain.py +4 -2
- openmc_data/depletion/reduce_chain.py +41 -8
- 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 -5
- {openmc_data-0.2.5.dist-info → openmc_data-0.2.7.dist-info}/METADATA +1 -1
- {openmc_data-0.2.5.dist-info → openmc_data-0.2.7.dist-info}/RECORD +25 -24
- {openmc_data-0.2.5.dist-info → openmc_data-0.2.7.dist-info}/entry_points.txt +1 -0
- {openmc_data-0.2.5.dist-info → openmc_data-0.2.7.dist-info}/LICENSE +0 -0
- {openmc_data-0.2.5.dist-info → openmc_data-0.2.7.dist-info}/WHEEL +0 -0
- {openmc_data-0.2.5.dist-info → openmc_data-0.2.7.dist-info}/top_level.txt +0 -0
openmc_data/utils.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import hashlib
|
|
2
|
-
import imp
|
|
3
2
|
import tarfile
|
|
4
3
|
from typing import Iterable
|
|
5
4
|
import warnings
|
|
@@ -9,22 +8,44 @@ import shutil
|
|
|
9
8
|
from urllib.parse import urlparse
|
|
10
9
|
from urllib.request import Request, urlopen
|
|
11
10
|
import warnings
|
|
11
|
+
from .urls import all_release_details
|
|
12
12
|
|
|
13
13
|
import openmc.data
|
|
14
14
|
|
|
15
15
|
_BLOCK_SIZE = 16384
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
def state_download_size(download_size, uncompressed_size, units):
|
|
17
|
+
def state_download_size(compressed_file_size, uncompressed_file_size, units):
|
|
19
18
|
"""Prints a standard message to users displaying the amount of storage
|
|
20
19
|
space required to run the script"""
|
|
21
20
|
|
|
22
|
-
msg = (f"WARNING: This script will download up to {
|
|
21
|
+
msg = (f"WARNING: This script will download up to {compressed_file_size} {units} "
|
|
23
22
|
"of data. Extracting and processing the data may require as much "
|
|
24
|
-
f"as {
|
|
23
|
+
f"as {uncompressed_file_size} {units} of additional free disk space.")
|
|
25
24
|
warnings.warn(msg)
|
|
26
25
|
|
|
27
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
|
+
|
|
28
49
|
def process_neutron(path, output_dir, libver, temperatures=None):
|
|
29
50
|
"""Process ENDF neutron sublibrary file into HDF5 and write into a
|
|
30
51
|
specified output directory."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openmc_data
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
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
|
|
@@ -1,21 +1,21 @@
|
|
|
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=mXPA9v4zB_3yyyQ0dNvl4mba1fMh4hU3qcyCEtD2HlE,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
|
-
openmc_data/depletion/add_branching_ratios.py,sha256=
|
|
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
|
|
20
20
|
openmc_data/depletion/branching_ratios_sfr.json,sha256=fRsPf2zYYspGmlKtWnM7ApRkXnkSZLkiTOoLIJBdCnU,6227
|
|
21
21
|
openmc_data/depletion/casl_chain.py,sha256=GgadOJHGviz8r-suqrF4M5TIDgsy1qFa267kYh_SoPw,11173
|
|
@@ -30,12 +30,12 @@ openmc_data/depletion/chain_endf_b8.0_pwr.xml,sha256=iVnUWt79n4J5BKU_ETn-Y5F5dnL
|
|
|
30
30
|
openmc_data/depletion/chain_endf_b8.0_sfr.xml,sha256=qmgyj2QJX1F6_OG5X2BZKr6nyiEMEGj6SleZnnO6cSs,27672964
|
|
31
31
|
openmc_data/depletion/chain_endfb71_pwr.xml,sha256=jAzAlbvI44zzv8xFZgHL1fTf-ZE12U2gDXpPCRBZgaI,1862978
|
|
32
32
|
openmc_data/depletion/chain_endfb71_sfr.xml,sha256=s0OJwslf-xfNiROgPgY96wg7ddvRvBjKBcISNGjN_yw,1863707
|
|
33
|
-
openmc_data/depletion/generate_endf71_chain_casl.py,sha256=
|
|
34
|
-
openmc_data/depletion/generate_endf_chain.py,sha256=
|
|
35
|
-
openmc_data/depletion/generate_jeff_chain.py,sha256=
|
|
36
|
-
openmc_data/depletion/generate_serpent_fissq.py,sha256=
|
|
37
|
-
openmc_data/depletion/generate_tendl_chain.py,sha256=
|
|
38
|
-
openmc_data/depletion/reduce_chain.py,sha256=
|
|
33
|
+
openmc_data/depletion/generate_endf71_chain_casl.py,sha256=OpQi48fMYpAS7i7M5GfetsSatmPJk4cZfHkQokb2dig,11234
|
|
34
|
+
openmc_data/depletion/generate_endf_chain.py,sha256=cIVuoCWYOap1_I7rKgEkNRSMTJzrazcUG5KlkZuZlNc,2964
|
|
35
|
+
openmc_data/depletion/generate_jeff_chain.py,sha256=utAvQpGlIUkiMJdmN6CSjo7tEau38VK-HG7kQK7bSaE,2692
|
|
36
|
+
openmc_data/depletion/generate_serpent_fissq.py,sha256=IizN7MwhEB3_V-9oOIOa5c5RYUqYfEeR3TexSKeIuSc,1426
|
|
37
|
+
openmc_data/depletion/generate_tendl_chain.py,sha256=owQJLiPPUfgFiSQtuQRsCBlALNOcu-0HT5-eambY7ig,5092
|
|
38
|
+
openmc_data/depletion/reduce_chain.py,sha256=PovyMtc_W_9QhZMU19qlc3w_VJNWgwu0sjWK8do6bHo,1311
|
|
39
39
|
openmc_data/depletion/serpent_fissq.json,sha256=qmXD5cdJJcr4_kNGsSR1jZMGeZRQ1iiBgH1CiH9vMQQ,2383
|
|
40
40
|
openmc_data/depletion/tendl2019_nuclides.json,sha256=aiQK-tQOgpnISlXJbSLsIw_5zO-n1Wdirs8QPunnerA,6266
|
|
41
41
|
openmc_data/depletion/tendl2021_nuclides.json,sha256=aiQK-tQOgpnISlXJbSLsIw_5zO-n1Wdirs8QPunnerA,6266
|
|
@@ -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-0.2.
|
|
58
|
-
openmc_data-0.2.
|
|
59
|
-
openmc_data-0.2.
|
|
60
|
-
openmc_data-0.2.
|
|
61
|
-
openmc_data-0.2.
|
|
62
|
-
openmc_data-0.2.
|
|
58
|
+
openmc_data-0.2.7.dist-info/LICENSE,sha256=T8b4ZA1twIAqilf_sxR250dAe8AdFhM3k6hqEE0TzBs,1086
|
|
59
|
+
openmc_data-0.2.7.dist-info/METADATA,sha256=d0Y4vSLM-1-cedvmziY711yErGeWNStVYODOz92uaSY,9216
|
|
60
|
+
openmc_data-0.2.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
61
|
+
openmc_data-0.2.7.dist-info/entry_points.txt,sha256=XHn4QdJU5BA7P4NZ-6SYZuXMq5vKXpRhjGZF1reO2hY,1724
|
|
62
|
+
openmc_data-0.2.7.dist-info/top_level.txt,sha256=ORU-aSVgJUNjwtVsqnZjP4tvU3QUZZpa-XF90ZnE4MQ,12
|
|
63
|
+
openmc_data-0.2.7.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
|