From 8104704b1f33b26b464edfce061b786c2e8eeea0 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 2 Nov 2015 06:53:42 -0600 Subject: [PATCH] Remove old instance of getIds --- openmc/universe.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openmc/universe.py b/openmc/universe.py index cd12405b29..b38ff2c4ba 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -527,11 +527,9 @@ class Universe(object): 'not a Cell'.format(self._id, cell) raise ValueError(msg) - cell_id = cell.getId() - # If the Cell is in the Universe's list of Cells, delete it - if cell_id in self._cells: - del self._cells[cell_id] + if cell.id in self._cells: + del self._cells[cell.id] def clear_cells(self): """Remove all cells from the universe."""