Merge pull request #537 from samuelshaner/rectlattice-univ

Changed Python API RectLattice universes ordering from [x][y] to [y][x] and [x][y][z] to [z][y][x]
This commit is contained in:
Will Boyd 2015-12-30 08:10:53 -08:00
commit fd712f6483

View file

@ -1119,7 +1119,7 @@ class RectLattice(Lattice):
for z in range(self._dimension[2]):
for y in range(self._dimension[1]):
for x in range(self._dimension[0]):
universe = self._universes[x][y][z]
universe = self._universes[z][y][x]
# Append Universe ID to the Lattice XML subelement
universe_ids += '{0} '.format(universe._id)
@ -1137,7 +1137,7 @@ class RectLattice(Lattice):
else:
for y in range(self._dimension[1]):
for x in range(self._dimension[0]):
universe = self._universes[x][y]
universe = self._universes[y][x]
# Append Universe ID to Lattice XML subelement
universe_ids += '{0} '.format(universe._id)