update styling

This commit is contained in:
josh 2022-11-30 00:59:26 +00:00
parent 71631ada04
commit 3f83699c22
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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()