Merge pull request #2148 from openmc-dev/yardasol-patch-1

Minor styling fix in `Material.py`
This commit is contained in:
Paul Romano 2022-08-04 06:33:37 -05:00 committed by GitHub
commit 58f3b1d849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -861,7 +861,7 @@ class Material(IDManagerMixin):
elif self.density_units == 'atom/b-cm':
density = self.density
elif self.density_units == 'atom/cm3' or self.density_units == 'atom/cc':
density = 1.E-24 * self.density
density = 1.e-24 * self.density
# For ease of processing split out nuc, nuc_density,
# and nuc_density_type into separate arrays
@ -897,7 +897,7 @@ class Material(IDManagerMixin):
# Convert the mass density to an atom density
if not density_in_atom:
density = -density / self.average_molar_mass * 1.E-24 \
density = -density / self.average_molar_mass * 1.e-24 \
* openmc.data.AVOGADRO
nuc_densities = density * nuc_densities