ncrystal-python 4.4.2__tar.gz → 4.4.6__tar.gz
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.
- {ncrystal_python-4.4.2/src/ncrystal_python.egg-info → ncrystal_python-4.4.6}/PKG-INFO +1 -1
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/__init__.py +1 -1
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cliimpl.py +4 -3
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_ncmat2endf_impl.py +3 -3
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_ncmatimpl.py +15 -8
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6/src/ncrystal_python.egg-info}/PKG-INFO +1 -1
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/LICENSE +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/README.md +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/pyproject.toml +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/setup.cfg +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/__main__.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_chooks.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_cif2ncmat.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_endf2ncmat.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_hfg2ncmat.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_mcstasunion.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_minimc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_ncmat2cpp.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_ncmat2endf.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_ncmat2hkl.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_nctool.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_query.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_vdos2ncmat.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cli_verifyatompos.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_clientry.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_cliwrap_config.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_common.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_coreimpl.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_hfgdata.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_hklobjects.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_is_std.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_locatelib.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_miscimpl.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_mmc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_mmc_doc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_mmc_impl.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_msg.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_ncmat2cpp_impl.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_numpy.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_sabutils.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/_testimpl.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/api.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/atomdata.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/cfgstr.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/cifutils.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/cli.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/constants.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/core.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/datasrc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/exceptions.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/hfg2ncmat.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/hist.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/mcstasutils.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/minimc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/minimc_objects.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/misc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/mmc.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/ncmat.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/ncmat2cpp.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/ncmat2endf.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/obsolete.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/plot.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/plugins.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/test.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/NCrystal/vdos.py +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/SOURCES.txt +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/dependency_links.txt +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/entry_points.txt +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/requires.txt +0 -0
- {ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/top_level.txt +0 -0
|
@@ -55,7 +55,7 @@ For detailed usage conditions and licensing of this open source project, see:
|
|
|
55
55
|
|
|
56
56
|
#NB: Synchronize meta-data below with fields in setup.py+template_setup.py.in meta data:
|
|
57
57
|
__license__ = "Apache 2.0, http://www.apache.org/licenses/LICENSE-2.0"
|
|
58
|
-
__version__ = '4.4.
|
|
58
|
+
__version__ = '4.4.6'
|
|
59
59
|
__status__ = "Production"
|
|
60
60
|
__author__ = "NCrystal developers (Thomas Kittelmann, Xiao Xiao Cai)"
|
|
61
61
|
__copyright__ = "Copyright 2015-2024 %s"%__author__
|
|
@@ -80,8 +80,8 @@ def create_ArgumentParser( *args, **kwargs ):
|
|
|
80
80
|
f(parser)
|
|
81
81
|
|
|
82
82
|
thepyversion = _pyversion()
|
|
83
|
-
if thepyversion < (3,
|
|
84
|
-
#Monkey patch object to have same _check_value as in 3.
|
|
83
|
+
if thepyversion < (3,14) and hasattr(parser,'_check_value'):
|
|
84
|
+
#Monkey patch object to have same _check_value as in 3.14
|
|
85
85
|
def _check_value( action, value):
|
|
86
86
|
# converted value must be one of the choices (if specified)
|
|
87
87
|
choices = action.choices
|
|
@@ -90,7 +90,8 @@ def create_ArgumentParser( *args, **kwargs ):
|
|
|
90
90
|
choices = iter(choices)
|
|
91
91
|
if value not in choices:
|
|
92
92
|
args = {'value': str(value),
|
|
93
|
-
'choices': ', '.join(
|
|
93
|
+
'choices': ', '.join(repr(str(choice))
|
|
94
|
+
for choice in action.choices)}
|
|
94
95
|
from gettext import gettext as _
|
|
95
96
|
msg = _('invalid choice: %(value)r'
|
|
96
97
|
' (choose from %(choices)s)')
|
|
@@ -567,7 +567,7 @@ class NuclearData():
|
|
|
567
567
|
# contain numbers that cannot be represented
|
|
568
568
|
# as distinct FORTRAN reals in the ENDF-6 file
|
|
569
569
|
#
|
|
570
|
-
sab
|
|
570
|
+
sab = sab.reshape(beta.size, alpha.size)
|
|
571
571
|
sab_int = _interp2d(self._elems[sym].alpha*T0/T,
|
|
572
572
|
self._elems[sym].beta_total*T0/T,
|
|
573
573
|
alpha, beta, sab.transpose()).transpose()
|
|
@@ -762,7 +762,7 @@ class EndfFile():
|
|
|
762
762
|
# S(a,b) for negative beta
|
|
763
763
|
# get negative branch of S(a,b)
|
|
764
764
|
sab_sym2 = sab_total[_np.where(beta_grid<=0)]
|
|
765
|
-
sab_sym2
|
|
765
|
+
sab_sym2 = sab_sym2.reshape(len(beta), len(alpha))
|
|
766
766
|
sab_sym3 = sab_sym2[::-1,:] # Invert S(a,b) for negative beta
|
|
767
767
|
sab_data.append(sab_sym3.transpose())
|
|
768
768
|
continue
|
|
@@ -776,7 +776,7 @@ class EndfFile():
|
|
|
776
776
|
sab_sym = sab_total*detailed_balance_factor
|
|
777
777
|
# get negative branch of S(a,b)
|
|
778
778
|
sab_sym2 = sab_sym[_np.where(beta_grid<=0)]
|
|
779
|
-
sab_sym2
|
|
779
|
+
sab_sym2 = sab_sym2.reshape(len(beta), len(alpha))
|
|
780
780
|
# Invert S(a,b) for negative beta
|
|
781
781
|
sab_sym3 = sab_sym2[::-1,:]
|
|
782
782
|
sab_data.append(sab_sym3.transpose())
|
|
@@ -2062,14 +2062,21 @@ def _cifdata_via_ase( data_or_file, ase_format = None, quiet = False ):
|
|
|
2062
2062
|
ase_format = 'cif'
|
|
2063
2063
|
assert isinstance(ase_format,str)
|
|
2064
2064
|
prfct('Attempting to load data via ASE')
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2065
|
+
#Temporary workaround to quiet a DeprecationWarning from Numpy 2.5+
|
|
2066
|
+
#(jun2026) triggered by ASE. We can remove it again in a few years:
|
|
2067
|
+
import warnings
|
|
2068
|
+
with warnings.catch_warnings():
|
|
2069
|
+
warnings.filterwarnings( "ignore", category=DeprecationWarning,
|
|
2070
|
+
message=('.*Setting the shape on a NumPy'
|
|
2071
|
+
' array has been deprecated.*'))
|
|
2072
|
+
if dof_str:
|
|
2073
|
+
assert isinstance(dof_str,str)
|
|
2074
|
+
with io.StringIO(dof_str) as memfile:
|
|
2075
|
+
ase_obj = ase_io.read( memfile, format = ase_format )
|
|
2076
|
+
else:
|
|
2077
|
+
assert isinstance(dof_bytes,bytes)
|
|
2078
|
+
with io.BytesIO(dof_bytes) as memfile:
|
|
2079
|
+
ase_obj = ase_io.read( memfile, format = ase_format )
|
|
2073
2080
|
|
|
2074
2081
|
assert ase_obj is not None
|
|
2075
2082
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{ncrystal_python-4.4.2 → ncrystal_python-4.4.6}/src/ncrystal_python.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|