mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Changed conditionals for lattice outer to be more Pythonic per comments by @paulromano
This commit is contained in:
parent
c8111b1e21
commit
2c19aaae74
1 changed files with 2 additions and 2 deletions
|
|
@ -912,7 +912,7 @@ def get_opencg_lattice(openmc_lattice):
|
|||
opencg_lattice.dimension = dimension
|
||||
opencg_lattice.width = pitch
|
||||
opencg_lattice.universes = universe_array
|
||||
if outer != None:
|
||||
if outer is not None:
|
||||
opencg_lattice.outside = get_opencg_universe(outer)
|
||||
|
||||
offset = np.array(lower_left, dtype=np.float64) - \
|
||||
|
|
@ -991,7 +991,7 @@ def get_openmc_lattice(opencg_lattice):
|
|||
openmc_lattice.pitch = width
|
||||
openmc_lattice.universes = universe_array
|
||||
openmc_lattice.lower_left = lower_left
|
||||
if outer != None:
|
||||
if outer is not None:
|
||||
openmc_lattice.outer = get_openmc_universe(outer)
|
||||
|
||||
# Add the OpenMC Lattice to the global collection of all OpenMC Lattices
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue