mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
update styling
This commit is contained in:
parent
71631ada04
commit
3f83699c22
2 changed files with 2 additions and 2 deletions
|
|
@ -469,7 +469,7 @@ class Universe(UniverseBase):
|
|||
"""
|
||||
nuclides = OrderedDict()
|
||||
|
||||
if len(self._atoms) > 0:
|
||||
if self._atoms:
|
||||
volume = self.volume
|
||||
for name, atoms in self._atoms.items():
|
||||
nuclide = openmc.Nuclide(name)
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ def test_get_nuclide_densities():
|
|||
material = openmc.Material()
|
||||
material.add_elements_from_formula("H2O")
|
||||
material.set_density("g/cm3", 1)
|
||||
cell = openmc.Cell(region=-surf,fill=material)
|
||||
cell = openmc.Cell(region=-surf, fill=material)
|
||||
universe = openmc.Universe(cells=[cell])
|
||||
with pytest.raises(RuntimeError):
|
||||
universe.get_nuclide_densities()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue