mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Changed if statement for surfaces
Corrected `if not surfaces` to `if surfaces is None`
This commit is contained in:
parent
a01b87d628
commit
5cc6e6a684
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ class Region(object):
|
|||
Dictionary mapping surface IDs to :class:`openmc.Surface` instances
|
||||
|
||||
"""
|
||||
if not surfaces:
|
||||
if surfaces is None:
|
||||
surfaces = OrderedDict()
|
||||
for region in self:
|
||||
surfaces = region.update_surfaces(surfaces)
|
||||
|
|
@ -468,7 +468,7 @@ class Complement(Region):
|
|||
Dictionary mapping surface IDs to :class:`openmc.Surface` instances
|
||||
|
||||
"""
|
||||
if not surfaces:
|
||||
if surfaces is None:
|
||||
surfaces = OrderedDict()
|
||||
for region in self.node:
|
||||
surfaces = region.update_surfaces(surfaces)
|
||||
|
|
|
|||
|
|
@ -1896,7 +1896,7 @@ class Halfspace(Region):
|
|||
Dictionary mapping surface IDs to :class:`openmc.Surface` instances
|
||||
|
||||
"""
|
||||
if not surfaces:
|
||||
if surfaces is None:
|
||||
surfaces = OrderedDict()
|
||||
|
||||
surfaces[self.surface.id] = self.surface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue