mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Remove old instance of getIds
This commit is contained in:
parent
756c6b3888
commit
8104704b1f
1 changed files with 2 additions and 4 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue