From db550a05370bc81189134f9cc2fb1cab1596cc3d Mon Sep 17 00:00:00 2001 From: "wbinventor@gmail.com" Date: Tue, 24 Nov 2015 21:08:54 -0500 Subject: [PATCH 1/2] Fixed bug casting OpenCG rotations to integers is now double --- openmc/opencg_compatible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/opencg_compatible.py b/openmc/opencg_compatible.py index 93c0e5fae7..6430b24240 100644 --- a/openmc/opencg_compatible.py +++ b/openmc/opencg_compatible.py @@ -726,7 +726,7 @@ def get_openmc_cell(opencg_cell): openmc_cell.fill = get_openmc_material(fill) if opencg_cell.rotation: - rotation = np.asarray(opencg_cell.rotation, dtype=np.int) + rotation = np.asarray(opencg_cell.rotation, dtype=np.float64) openmc_cell.rotation = rotation if opencg_cell.translation: From a11950f94ae890f8c78b2be736ff006d71e19fc4 Mon Sep 17 00:00:00 2001 From: "wbinventor@gmail.com" Date: Tue, 24 Nov 2015 22:01:12 -0500 Subject: [PATCH 2/2] Now over-riding openmc/opencg geometries in MGXS Library when loading from StatePoint --- openmc/mgxs/library.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmc/mgxs/library.py b/openmc/mgxs/library.py index 87c6665b2d..fa49d24e64 100644 --- a/openmc/mgxs/library.py +++ b/openmc/mgxs/library.py @@ -361,6 +361,8 @@ class Library(object): raise ValueError(msg) self._sp_filename = statepoint._f.filename + self._openmc_geometry = statepoint.summary.openmc_geometry + self._opencg_geometry = None # Load tallies for each MGXS for each domain and mgxs type for domain in self.domains: