ncrystal-python 4.2.2__py3-none-any.whl → 4.2.6__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.
NCrystal/__init__.py CHANGED
@@ -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.2.2'
58
+ __version__ = '4.2.6'
59
59
  __status__ = "Production"
60
60
  __author__ = "NCrystal developers (Thomas Kittelmann, Xiao Xiao Cai)"
61
61
  __copyright__ = "Copyright 2015-2024 %s"%__author__
@@ -1060,7 +1060,12 @@ class EndfFile():
1060
1060
 
1061
1061
  if self._parser is None:
1062
1062
  endf_parserpy,_,_ = import_endfparserpy()
1063
- self._parser = endf_parserpy.EndfParser(
1063
+ if hasattr(endf_parserpy,'EndfParserPy'):
1064
+ EndfParserPy = endf_parserpy.EndfParserPy
1065
+ else:
1066
+ #legacy endf-parserpy 0.13.x support
1067
+ EndfParserPy = endf_parserpy.EndfParser
1068
+ self._parser = EndfParserPy(
1064
1069
  explain_missing_variable=True,
1065
1070
  cache_dir=False
1066
1071
  )
NCrystal/_testimpl.py CHANGED
@@ -46,7 +46,10 @@ def test_all( verbose = False ):
46
46
 
47
47
  def _get_prfct( verbose ):
48
48
  if verbose and verbose != 'quiet':
49
- return lambda *a, **kw : _nc_print('::NCrystalTest::',*a,**kw)
49
+ def prt( *a, **kw ):
50
+ kw['flush'] = True
51
+ return _nc_print('::NCrystalTest::',*a,**kw)
52
+ return prt
50
53
  else:
51
54
  return lambda *a, **kw : None
52
55
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ncrystal-python
3
- Version: 4.2.2
3
+ Version: 4.2.6
4
4
  Summary: Library for thermal neutron transport in crystals and other materials.
5
5
  Author: NCrystal developers (Thomas Kittelmann, Xiao Xiao Cai)
6
6
  License:
@@ -1,4 +1,4 @@
1
- NCrystal/__init__.py,sha256=HBWHBQGuKN-FUrsd3L1ZqyBcRloJatZmGWXJl9cQIAc,4151
1
+ NCrystal/__init__.py,sha256=YEDgJIjLopRbDNFMibofc8kFZq0mxx14z7bTo1NI3P0,4151
2
2
  NCrystal/__main__.py,sha256=tYOeVhY6joHahgtnBwNgcBDd-WXYQoHFmpslk2TAlTY,3624
3
3
  NCrystal/_chooks.py,sha256=blZZ4IWjZDYAS7YLhmqxjYKl2IArcE4dotZXoziDE48,43713
4
4
  NCrystal/_cli_cif2ncmat.py,sha256=Hmp8MWV7d3Bzu_5Ekiik9Pdv43yNyZygun8HtqShn78,14626
@@ -23,11 +23,11 @@ NCrystal/_miscimpl.py,sha256=SF1RriTZXgF4uINON6UZqY4vtroJZJ_HuoGaV0tMuK0,17380
23
23
  NCrystal/_mmc.py,sha256=FiavyAkRDb3MZ222AHXbmQpBQLwqBdzxtDCMunnKfRI,29349
24
24
  NCrystal/_msg.py,sha256=wBJk0kGHusm0xXSt8KNYq6iIO_cubnznvnJ5Erl87EU,2624
25
25
  NCrystal/_ncmat2cpp_impl.py,sha256=D_knqsv92EnaPJlufE3fJe2fnETnyQ8k9TbMwpXmxZs,18383
26
- NCrystal/_ncmat2endf_impl.py,sha256=TlBwdM5JvvVzZ7qigs1FHrIVPSkgfePW9_e1WGDBALE,62691
26
+ NCrystal/_ncmat2endf_impl.py,sha256=rcKHdvIsrsl9SPRoWcmgXk4TR-NRwY79E1JydtW-J4Q,62918
27
27
  NCrystal/_ncmatimpl.py,sha256=fsIHG77q27tZT9R7ZDMrSr3yunT2W5dE9FH6uA0gvYk,95041
28
28
  NCrystal/_numpy.py,sha256=SwFcvrNBDqP647guedRdFeISsC8b4VvGm9McFyF1gJQ,2924
29
29
  NCrystal/_sabutils.py,sha256=vZD2wB42r48_0EZKPTS6q5sKN1RGgjWi2zVuVvtbdGk,4798
30
- NCrystal/_testimpl.py,sha256=kXXqvZO-MRvKjlxlHQLEcxU3_JGd8f954yrA4rSqwjM,21352
30
+ NCrystal/_testimpl.py,sha256=UPP2b4aaOTPxdUpfqPWgWIwg-BFZbeaivFxnrE7sO_M,21418
31
31
  NCrystal/api.py,sha256=VRJLRLQ461OvEHAv5OGxqimAa7l3PY1mcTZMRQjSkkI,2973
32
32
  NCrystal/atomdata.py,sha256=gwq92dIQqmr8kg_pyquPAsUrI9TWLVOELuEh2OLgkVw,8072
33
33
  NCrystal/cfgstr.py,sha256=IVrMagRTD0TkAhuJkWkGKsJCX4ezG8Tf9uyfkhRjMgY,3741
@@ -49,9 +49,9 @@ NCrystal/plot.py,sha256=oymblLRKTfE2xCsX4W7H6cXIKxDNV7rr6Z4dZnCJjt0,19975
49
49
  NCrystal/plugins.py,sha256=U4EF25DlYE8aO6uoG5Ptyia5Nj08LCrVl7973BCIkDI,2440
50
50
  NCrystal/test.py,sha256=fH6OfjvQ2KJRYaooYVGFsp4QJGj_WC4QRq1bPd36vwg,2731
51
51
  NCrystal/vdos.py,sha256=DL3UtaCMLaY-bBB6ztT1qZKYfO44INeEpgra_9JAyMo,47607
52
- ncrystal_python-4.2.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
53
- ncrystal_python-4.2.2.dist-info/METADATA,sha256=aUQvlJ7Ijju7DGy4p1RwvGk5iMGTrBAAXGD96xzUQaQ,16274
54
- ncrystal_python-4.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
55
- ncrystal_python-4.2.2.dist-info/entry_points.txt,sha256=I9Nz-pdriq2xHbYRAw-yUaI33jQwVbNRy8-3mCVe_jE,521
56
- ncrystal_python-4.2.2.dist-info/top_level.txt,sha256=VIJdIQMfLIbKpFXA8xm0fKY5okz8s5IHrZTYDSH18y0,9
57
- ncrystal_python-4.2.2.dist-info/RECORD,,
52
+ ncrystal_python-4.2.6.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
53
+ ncrystal_python-4.2.6.dist-info/METADATA,sha256=Fbhmjqmu6_905uRoh3Wo4h54t1VFgLZdTKCYkEIlRMM,16274
54
+ ncrystal_python-4.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
55
+ ncrystal_python-4.2.6.dist-info/entry_points.txt,sha256=I9Nz-pdriq2xHbYRAw-yUaI33jQwVbNRy8-3mCVe_jE,521
56
+ ncrystal_python-4.2.6.dist-info/top_level.txt,sha256=VIJdIQMfLIbKpFXA8xm0fKY5okz8s5IHrZTYDSH18y0,9
57
+ ncrystal_python-4.2.6.dist-info/RECORD,,