mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Correcting return type in Geometry object and making get_all_cells/get_all_materials consistent there.
This commit is contained in:
parent
c5cef78ade
commit
8478a577e3
1 changed files with 5 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ class Geometry(object):
|
|||
if self.root_universe is not None:
|
||||
return self.root_universe.get_all_cells(memo)
|
||||
else:
|
||||
return []
|
||||
return OrderedDict()
|
||||
|
||||
def get_all_universes(self):
|
||||
"""Return all universes in the geometry.
|
||||
|
|
@ -308,7 +308,10 @@ class Geometry(object):
|
|||
"""
|
||||
memo = set()
|
||||
|
||||
return self.root_universe.get_all_materials(memo)
|
||||
if self.root_universe is not None:
|
||||
return self.root_universe.get_all_materials(memo)
|
||||
else:
|
||||
return OrderedDict()
|
||||
|
||||
def get_all_material_cells(self):
|
||||
"""Return all cells filled by a material
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue