From c8d0185bac30c1e4195ab208abd67540ccc5bc0d Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 30 Jun 2015 16:25:18 +0700 Subject: [PATCH] Clarify error messages when checking cell/lattice offsets --- openmc/universe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/universe.py b/openmc/universe.py index e7d34a030d..62055049d7 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -160,7 +160,7 @@ class Cell(object): @offsets.setter def offsets(self, offsets): - check_type('offsets', offsets, Iterable) + check_type('cell offsets', offsets, Iterable) self._offsets = offsets def add_surface(self, surface, halfspace): @@ -839,7 +839,7 @@ class RectLattice(Lattice): @offsets.setter def offsets(self, offsets): - check_type('offsets', offsets, Iterable) + check_type('lattice offsets', offsets, Iterable) self._offsets = offsets @Lattice.pitch.setter