From e3c927b0210abf7b2ca2d9d52c3d22d0b91e0712 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 31 May 2016 09:41:15 -0500 Subject: [PATCH] Fix use of fill_type in universe module --- openmc/universe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/universe.py b/openmc/universe.py index a28729d8e..7f32d68a9 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -130,7 +130,7 @@ class Universe(object): Parameters ---------- point : 3-tuple of float - Cartesian coordinatesof the point + Cartesian coordinates of the point Returns ------- @@ -142,9 +142,9 @@ class Universe(object): p = np.asarray(point) for cell in self._cells.values(): if p in cell: - if cell._type in ('normal', 'void'): + if cell.fill_type in ('material', 'distribmat', 'void'): return [self, cell] - elif cell._type == 'fill': + elif cell.fill_type == 'universe': if cell.translation is not None: p -= cell.translation if cell.rotation is not None: