Skip to content

Commit

Permalink
import from dgcode ncrystaldev git: candidate for version 3.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Sep 2, 2024
1 parent 927ddad commit 027134f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v3.9.7 2024-09-02
* Fix bug in LoadedMaterial.xsect/.macroscopic_xsect methods.

v3.9.6 2024-08-30
* Add several new convenience methods to MiniMC results and histograms.
* Fix bug in MiniMC histogram error propagation.
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ endif()

cmake_policy( SET CMP0048 NEW )#Not sure if this is really needed

project( NCrystal VERSION 3.9.6 ${_project_metadata} )
project( NCrystal VERSION 3.9.7 ${_project_metadata} )

unset( _project_metadata )

Expand Down
2 changes: 1 addition & 1 deletion NCrystal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

#NB: Synchronize meta-data below with fields in setup.py+template_setup.py.in meta data:
__license__ = "Apache 2.0, http://www.apache.org/licenses/LICENSE-2.0"
__version__ = '3.9.6'
__version__ = '3.9.7'
__status__ = "Production"
__author__ = "NCrystal developers (Thomas Kittelmann, Xiao Xiao Cai)"
__copyright__ = "Copyright 2015-2024 %s"%__author__
Expand Down
2 changes: 1 addition & 1 deletion NCrystal/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ def xsect( self, *args, **kwargs ):
"""Convenience function which adds up the cross sections from any loaded
absorption and scatter processes. Refer to the Process.xsect method for
arguments."""
procs = (p for p in (self.scatter,self.absorption) if p is not None)
procs = [p for p in (self.scatter,self.absorption) if p is not None]
if not procs:
raise NCCalcError('.xsect(..) can only be called on'
' LoadedMaterial which contains processes.')
Expand Down
2 changes: 0 additions & 2 deletions NCrystal/hfg2ncmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ def hfg2ncmat( spec,
#ncrystal_hfg2ncmat command-line app!

from ._hfgdata import get_data as hfg_get_data
#FIXME: CHECK ARGS
#FIXME: seems to parse!!!!! --formula CH6s

if verbose:
from ._common import print
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.6
3.9.7
6 changes: 3 additions & 3 deletions ncrystal_core/include/NCrystal/NCVersion.hh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

#define NCRYSTAL_VERSION_MAJOR 3
#define NCRYSTAL_VERSION_MINOR 9
#define NCRYSTAL_VERSION_PATCH 6
#define NCRYSTAL_VERSION 3009006 /* (1000000*MAJOR+1000*MINOR+PATCH) */
#define NCRYSTAL_VERSION_STR "3.9.6"
#define NCRYSTAL_VERSION_PATCH 7
#define NCRYSTAL_VERSION 3009007 /* (1000000*MAJOR+1000*MINOR+PATCH) */
#define NCRYSTAL_VERSION_STR "3.9.7"

#include "NCrystal/ncapi.h"
#include <stdexcept>
Expand Down
6 changes: 3 additions & 3 deletions ncrystal_core/include/NCrystal/ncrystal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1201,9 +1201,9 @@ extern "C" {
#endif
#define NCRYSTAL_VERSION_MAJOR 3
#define NCRYSTAL_VERSION_MINOR 9
#define NCRYSTAL_VERSION_PATCH 6
#define NCRYSTAL_VERSION 3009006 /* (1000000*MAJOR+1000*MINOR+PATCH) */
#define NCRYSTAL_VERSION_STR "3.9.6"
#define NCRYSTAL_VERSION_PATCH 7
#define NCRYSTAL_VERSION 3009007 /* (1000000*MAJOR+1000*MINOR+PATCH) */
#define NCRYSTAL_VERSION_STR "3.9.7"
NCRYSTAL_API int ncrystal_version(void); /* returns NCRYSTAL_VERSION */
NCRYSTAL_API const char * ncrystal_version_str(void); /* returns NCRYSTAL_VERSION_STR */

Expand Down

0 comments on commit 027134f

Please sign in to comment.