mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Changed conditionals for cell region to be more Pythonic per comments by @paulromano
This commit is contained in:
parent
2c19aaae74
commit
c38fcdc073
1 changed files with 1 additions and 1 deletions
|
|
@ -486,7 +486,7 @@ def get_opencg_cell(openmc_cell):
|
|||
# works if the region is a single half-space or an intersection of
|
||||
# half-spaces, i.e., no complex cells.
|
||||
region = openmc_cell.region
|
||||
if region != None:
|
||||
if region is not None:
|
||||
if isinstance(region, Halfspace):
|
||||
surface = region.surface
|
||||
halfspace = -1 if region.side == '-' else 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue