From 2b9fdc6c094d491731a01bf60bf73936f434e325 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Mon, 16 Mar 2015 21:18:57 -0400 Subject: [PATCH] Minor hex lattice improvements for #331 --- src/utils/openmc/universe.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils/openmc/universe.py b/src/utils/openmc/universe.py index b63d7ac5ee..e70b6effd5 100644 --- a/src/utils/openmc/universe.py +++ b/src/utils/openmc/universe.py @@ -1275,8 +1275,6 @@ class HexLattice(Lattice): outer ring. """ - assert len(universes) == self._num_rings - # Find the largest universe ID and count the number of digits so we can # properly pad the output string later. largest_id = max([max([univ._id for univ in ring]) @@ -1330,9 +1328,6 @@ class HexLattice(Lattice): y -= 1 theta += 1 - # Make sure we reached the bottom. - assert y == middle - 2*r - # Climb up the bottom-left. for i in range(r): # Add the universe. @@ -1363,10 +1358,6 @@ class HexLattice(Lattice): y += 1 theta += 1 - # Make sure we reached the top and used all the universes. - assert y == middle + 2*r - assert theta == len(universes[r_prime]) - # Flip the rows and join each row into a single string. rows = [pad.join(x) for x in rows[::-1]]